ports/net/asterisk/files/asterisk.sh.in
Maxim Sobolev 99abb7424d Make asterisk_pidfile actually working.
Reported by:	Denis Shaposhnikov <dsh@vlink.ru>
2006-06-19 18:34:43 +00:00

26 lines
383 B
Bash

#!/bin/sh
# PROVIDE: asterisk
# REQUIRE: DAEMON
# KEYWORD: shutdown
#
# Add the following lines to /etc/rc.conf to enable asterisk:
#
# asterisk_enable="YES"
#
. %%RC_SUBR%%
name=asterisk
rcvar=`set_rcvar`
command=%%PREFIX%%/sbin/asterisk
load_rc_config $name
pidfile=${asterisk_pidfile:-"/var/run/asterisk.pid"}
asterisk_enable=${asterisk_enable:-"NO"}
run_rc_command "$1"