mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-05-01 14:23:42 +00:00
FSSCRIPTS-10 thanks Sergey
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@10775 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
parent
9a0a8e186c
commit
1d7357e6d4
35
build/freeswitch.init.archlinux
Normal file
35
build/freeswitch.init.archlinux
Normal file
@ -0,0 +1,35 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
#
|
||||||
|
# freeswitch.sh - startup script for freeswitch
|
||||||
|
|
||||||
|
. /etc/rc.conf
|
||||||
|
. /etc/rc.d/functions
|
||||||
|
|
||||||
|
case "$1" in
|
||||||
|
|
||||||
|
start)
|
||||||
|
if [ -x /var/freeswitch/bin/freeswitch ] ; then
|
||||||
|
stat_busy "freeswitch starting..."
|
||||||
|
|
||||||
|
/var/freeswitch/bin/freeswitch -nc &
|
||||||
|
add_daemon freeswitch
|
||||||
|
stat_done
|
||||||
|
fi
|
||||||
|
;;
|
||||||
|
|
||||||
|
stop)
|
||||||
|
if [ -x /var/freeswitch/bin/freeswitch ] ; then
|
||||||
|
stat_busy "freeswitch stopping..."
|
||||||
|
|
||||||
|
/var/freeswitch/bin/freeswitch -stop &
|
||||||
|
rm_daemon freeswitch
|
||||||
|
stat_done
|
||||||
|
fi
|
||||||
|
;;
|
||||||
|
|
||||||
|
*)
|
||||||
|
echo "usage: $0 { start | stop }" >&2
|
||||||
|
exit 1
|
||||||
|
;;
|
||||||
|
|
||||||
|
esac
|
Loading…
x
Reference in New Issue
Block a user