aboutsummaryrefslogtreecommitdiffstats
path: root/net/asterisk-devel/files/asterisk.sh
diff options
context:
space:
mode:
Diffstat (limited to 'net/asterisk-devel/files/asterisk.sh')
-rw-r--r--net/asterisk-devel/files/asterisk.sh25
1 files changed, 25 insertions, 0 deletions
diff --git a/net/asterisk-devel/files/asterisk.sh b/net/asterisk-devel/files/asterisk.sh
new file mode 100644
index 000000000000..deee10c0cbe4
--- /dev/null
+++ b/net/asterisk-devel/files/asterisk.sh
@@ -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"
+#
+
+. /etc/rc.subr
+
+name=asterisk
+rcvar=`set_rcvar`
+
+command=/usr/local/sbin/asterisk
+pidfile=/var/run/asterisk.pid
+
+asterisk_enable=${asterisk_enable:-"NO"}
+
+load_rc_config $name
+run_rc_command "$1"