]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
FSSCRIPTS-10 thanks Sergey
authorBrian West <brian@freeswitch.org>
Mon, 15 Dec 2008 18:14:53 +0000 (18:14 +0000)
committerBrian West <brian@freeswitch.org>
Mon, 15 Dec 2008 18:14:53 +0000 (18:14 +0000)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@10775 d0543943-73ff-0310-b7d9-9358b9ac24b2

build/freeswitch.init.archlinux [new file with mode: 0644]

diff --git a/build/freeswitch.init.archlinux b/build/freeswitch.init.archlinux
new file mode 100644 (file)
index 0000000..c0285c3
--- /dev/null
@@ -0,0 +1,35 @@
+#!/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