git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@10775
d0543943-73ff-0310-b7d9-
9358b9ac24b2
--- /dev/null
+#!/bin/sh\r
+#\r
+# freeswitch.sh - startup script for freeswitch\r
+\r
+. /etc/rc.conf\r
+. /etc/rc.d/functions\r
+\r
+case "$1" in\r
+\r
+ start)\r
+ if [ -x /var/freeswitch/bin/freeswitch ] ; then\r
+ stat_busy "freeswitch starting..."\r
+\r
+ /var/freeswitch/bin/freeswitch -nc &\r
+ add_daemon freeswitch\r
+ stat_done\r
+ fi\r
+ ;;\r
+\r
+ stop)\r
+ if [ -x /var/freeswitch/bin/freeswitch ] ; then\r
+ stat_busy "freeswitch stopping..."\r
+\r
+ /var/freeswitch/bin/freeswitch -stop &\r
+ rm_daemon freeswitch\r
+ stat_done\r
+ fi\r
+ ;;\r
+\r
+ *)\r
+ echo "usage: $0 { start | stop }" >&2\r
+ exit 1\r
+ ;;\r
+\r
+esac\r