b57ef5a660
Based on PR: ports/79246 Submitted by: Ari Maniatis Approved by: maintainer
25 lines
394 B
Bash
25 lines
394 B
Bash
#!/bin/sh
|
|
|
|
# PROVIDE asterisk
|
|
# REQUIRE: NETWORKING SERVERS
|
|
# BEFORE: DAEMON
|
|
# KEYWORD: FreeBSD 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
|
|
pidfile=/var/run/asterisk.pid
|
|
|
|
asterisk_enable=${asterisk_enable:-"NO"}
|
|
|
|
load_rc_config $name
|
|
run_rc_command "$1"
|