[Freeswitch-svn] [commit] r7931 - freeswitch/trunk/build
Freeswitch SVN
mikej at freeswitch.org
Wed Mar 19 13:21:30 EDT 2008
Author: mikej
Date: Wed Mar 19 13:21:30 2008
New Revision: 7931
Modified:
freeswitch/trunk/build/freeswitch.init.redhat
Log:
cleanup
Modified: freeswitch/trunk/build/freeswitch.init.redhat
==============================================================================
--- freeswitch/trunk/build/freeswitch.init.redhat (original)
+++ freeswitch/trunk/build/freeswitch.init.redhat Wed Mar 19 13:21:30 2008
@@ -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 @@
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 @@
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;
More information about the Freeswitch-svn
mailing list