]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
FSSCRIPTS-4 thanks UnixDog
authorBrian West <brian@freeswitch.org>
Thu, 14 Aug 2008 16:50:13 +0000 (16:50 +0000)
committerBrian West <brian@freeswitch.org>
Thu, 14 Aug 2008 16:50:13 +0000 (16:50 +0000)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@9294 d0543943-73ff-0310-b7d9-9358b9ac24b2

scripts/freeswitch.sh [new file with mode: 0644]

diff --git a/scripts/freeswitch.sh b/scripts/freeswitch.sh
new file mode 100644 (file)
index 0000000..01be76b
--- /dev/null
@@ -0,0 +1,28 @@
+#!/bin/sh
+#
+# freeswitch.sh - startup script for freeswitch on FreeBSD
+#
+# This goes in /usr/local/etc/rc.d and gets run at boot-time.
+
+case "$1" in
+
+    start)
+    if [ -x /usr/local/freeswitch/bin/freeswitch ] ; then
+        echo -n " freeswitch"
+        /usr/local/freeswitch/bin/freeswitch -nc &
+    fi
+    ;;
+
+    stop)
+    if [ -x /usr/local/freeswitch/bin/freeswitch ] ; then
+        echo -n " freeswitch"
+        /usr/local/freeswitch/bin/freeswitch -stop &
+    fi
+    ;;
+
+    *)
+    echo "usage: $0 { start | stop }" >&2
+    exit 1
+    ;;
+
+esac 
\ No newline at end of file