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

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


Author: mikej
Date: Wed Mar 19 11:18:19 2008
New Revision: 7926

Modified:
   freeswitch/trunk/build/freeswitch.init.redhat

Log:
redhat init file tweak from Andrew... thanks

Modified: freeswitch/trunk/build/freeswitch.init.redhat
==============================================================================
--- freeswitch/trunk/build/freeswitch.init.redhat	(original)
+++ freeswitch/trunk/build/freeswitch.init.redhat	Wed Mar 19 11:18:19 2008
@@ -22,6 +22,7 @@
 prog=freeswitch
 pidfile=/opt/freeswitch/log/freeswitch.pid
 FS_USER=freeswitch
+FS_FILE=/opt/freeswitch/bin/freeswitch
 lockfile=/var/lock/subsys/freeswitch
 RETVAL=0
 
@@ -38,8 +39,9 @@
             fi
         fi
 
-        daemon --user $FS_USER --pidfile $pidfile $prog $FREESWITCH_PARAMS
-	RETVAL=$?
+        daemon --user $FS_USER --pidfile $pidfile "$FS_FILE $FREESWITCH_PARAMS >/dev/null 2>&1"
+		echo
+		RETVAL=$?
         [ $RETVAL -eq 0 ] && touch $lockfile;
         return $RETVAL
 }
@@ -52,7 +54,7 @@
             echo
             return 1;
         fi
-	/opt/freeswitch/bin/freeswitch -stop
+	/opt/freeswitch/bin/freeswitch -stop > /dev/null 2>&1
         killproc freeswitch
 	RETVAL=$?
 	echo



More information about the Freeswitch-svn mailing list