openbsd-ports/telephony/asterisk/pkg/asterisk.rc
ajacoutot 4f1d224b85 Make use of rcexec in rc_start().
ok sthen@ (maintainer)
2011-03-20 15:37:06 +00:00

18 lines
256 B
Bash

#!/bin/sh
#
# $OpenBSD: asterisk.rc,v 1.3 2011/03/20 15:37:06 ajacoutot Exp $
daemon="${TRUEPREFIX}/sbin/asterisk"
. /etc/rc.d/rc.subr
rc_start() {
${rcexec} "${TRUEPREFIX}/sbin/safe_asterisk"
}
rc_stop() {
${daemon} -rx "core stop now"
}
rc_cmd $1