summaryrefslogtreecommitdiff
path: root/net/asterisk16/files/asterisk.sh.in
diff options
context:
space:
mode:
Diffstat (limited to 'net/asterisk16/files/asterisk.sh.in')
-rw-r--r--net/asterisk16/files/asterisk.sh.in25
1 files changed, 25 insertions, 0 deletions
diff --git a/net/asterisk16/files/asterisk.sh.in b/net/asterisk16/files/asterisk.sh.in
new file mode 100644
index 000000000000..10f0c4275c84
--- /dev/null
+++ b/net/asterisk16/files/asterisk.sh.in
@@ -0,0 +1,25 @@
+#!/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"