freeswitch/scripts/freeswitch.sh
Brian West 4d3dac5b52 FSBUILD-249
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@16744 d0543943-73ff-0310-b7d9-9358b9ac24b2
2010-02-23 22:56:54 +00:00

28 lines
554 B
Bash
Executable File

#!/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