[Freeswitch-svn] [commit] r7932 - freeswitch/trunk/build

Freeswitch SVN mikej at freeswitch.org
Wed Mar 19 13:37:18 EDT 2008


Author: mikej
Date: Wed Mar 19 13:37:18 2008
New Revision: 7932

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:37:18 2008
@@ -11,7 +11,6 @@
 #  pidfile: /opt/freeswitch/log/freeswitch.pid
 #
 
-export PATH=$PATH:/opt/freeswitch/bin
 # Source function library.
 . /etc/init.d/functions
 
@@ -25,6 +24,7 @@
 FS_USER=freeswitch
 FS_FILE=/opt/freeswitch/bin/freeswitch
 LOCK_FILE=/var/lock/subsys/freeswitch
+FREESWITCH_ARGS="-nc"
 RETVAL=0
 
 # <define any local shell functions used by the code that follows>
@@ -32,7 +32,7 @@
 start() {
         echo -n "Starting $PROG_NAME: "
         if [ -e $LOCK_FILE ]; then
-            if [ -e $PID_FILE ] && [ -e /proc/`$PID_FILE` ]; then
+            if [ -e $PID_FILE ] && [ -e /proc/`cat $PID_FILE` ]; then
                 echo
                 echo -n $"$PROG_NAME is already running.";
                 failure $"$PROG_NAME is already running.";
@@ -41,10 +41,11 @@
             fi
         fi
 
-        daemon --user $FS_USER --pidfile $PID_FILE "$FS_FILE $FREESWITCH_PARAMS >/dev/null 2>&1"
+        daemon --user $FS_USER --pidfile $PID_FILE "$FS_FILE $FREESWITCH_ARGS $FREESWITCH_PARAMS >/dev/null 2>&1"
 		echo
 		RETVAL=$?
         [ $RETVAL -eq 0 ] && touch $LOCK_FILE;
+	echo
         return $RETVAL
 }
 



More information about the Freeswitch-svn mailing list