mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-03-15 13:14:03 +00:00
cleanup
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@7931 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
parent
bd07c59de3
commit
f75927e4d9
@ -4,7 +4,7 @@
|
|||||||
#
|
#
|
||||||
# The FreeSwitch Open Source Voice Platform
|
# The FreeSwitch Open Source Voice Platform
|
||||||
#
|
#
|
||||||
# chkconfig: - 89 14
|
# chkconfig: 345 89 14
|
||||||
# description: Starts and stops the freeswitch server daemon
|
# description: Starts and stops the freeswitch server daemon
|
||||||
# processname: freeswitch
|
# processname: freeswitch
|
||||||
# config: /opt/freeswitch/conf/freeswitch.conf
|
# config: /opt/freeswitch/conf/freeswitch.conf
|
||||||
@ -33,8 +33,9 @@ start() {
|
|||||||
echo -n "Starting $PROG_NAME: "
|
echo -n "Starting $PROG_NAME: "
|
||||||
if [ -e $LOCK_FILE ]; then
|
if [ -e $LOCK_FILE ]; then
|
||||||
if [ -e $PID_FILE ] && [ -e /proc/`$PID_FILE` ]; then
|
if [ -e $PID_FILE ] && [ -e /proc/`$PID_FILE` ]; then
|
||||||
echo -n $"cannot start freeswitch: freeswitch is already running.";
|
echo
|
||||||
failure $"cannot start freeswitch: freeswitch already running.";
|
echo -n $"$PROG_NAME is already running.";
|
||||||
|
failure $"$PROG_NAME is already running.";
|
||||||
echo
|
echo
|
||||||
return 1
|
return 1
|
||||||
fi
|
fi
|
||||||
@ -50,13 +51,14 @@ start() {
|
|||||||
stop() {
|
stop() {
|
||||||
echo -n "Shutting down $PROG_NAME: "
|
echo -n "Shutting down $PROG_NAME: "
|
||||||
if [ ! -e $LOCK_FILE ]; then
|
if [ ! -e $LOCK_FILE ]; then
|
||||||
|
echo
|
||||||
echo -n $"cannot stop $PROG_NAME: $PROG_NAME is not running."
|
echo -n $"cannot stop $PROG_NAME: $PROG_NAME is not running."
|
||||||
failure $"cannot stop $PROG_NAME: $PROG_NAME is not running."
|
failure $"cannot stop $PROG_NAME: $PROG_NAME is not running."
|
||||||
echo
|
echo
|
||||||
return 1;
|
return 1;
|
||||||
fi
|
fi
|
||||||
/opt/freeswitch/bin/freeswitch -stop > /dev/null 2>&1
|
$FS_FILE -stop > /dev/null 2>&1
|
||||||
killproc freeswitch
|
killproc $PROG_NAME
|
||||||
RETVAL=$?
|
RETVAL=$?
|
||||||
echo
|
echo
|
||||||
[ $RETVAL -eq 0 ] && rm -f $LOCK_FILE;
|
[ $RETVAL -eq 0 ] && rm -f $LOCK_FILE;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user