From f75927e4d9962a9fd283393bc103e0605acf5a57 Mon Sep 17 00:00:00 2001 From: Michael Jerris Date: Wed, 19 Mar 2008 17:21:30 +0000 Subject: [PATCH] cleanup git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@7931 d0543943-73ff-0310-b7d9-9358b9ac24b2 --- build/freeswitch.init.redhat | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/build/freeswitch.init.redhat b/build/freeswitch.init.redhat index 5d9e954ff8..517fcff858 100644 --- a/build/freeswitch.init.redhat +++ b/build/freeswitch.init.redhat @@ -4,7 +4,7 @@ # # The FreeSwitch Open Source Voice Platform # -# chkconfig: - 89 14 +# chkconfig: 345 89 14 # description: Starts and stops the freeswitch server daemon # processname: freeswitch # config: /opt/freeswitch/conf/freeswitch.conf @@ -33,8 +33,9 @@ start() { echo -n "Starting $PROG_NAME: " if [ -e $LOCK_FILE ]; then if [ -e $PID_FILE ] && [ -e /proc/`$PID_FILE` ]; then - echo -n $"cannot start freeswitch: freeswitch is already running."; - failure $"cannot start freeswitch: freeswitch already running."; + echo + echo -n $"$PROG_NAME is already running."; + failure $"$PROG_NAME is already running."; echo return 1 fi @@ -50,13 +51,14 @@ start() { stop() { echo -n "Shutting down $PROG_NAME: " if [ ! -e $LOCK_FILE ]; then + echo echo -n $"cannot stop $PROG_NAME: $PROG_NAME is not running." failure $"cannot stop $PROG_NAME: $PROG_NAME is not running." echo return 1; fi - /opt/freeswitch/bin/freeswitch -stop > /dev/null 2>&1 - killproc freeswitch + $FS_FILE -stop > /dev/null 2>&1 + killproc $PROG_NAME RETVAL=$? echo [ $RETVAL -eq 0 ] && rm -f $LOCK_FILE;