]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
redhat init file tweak from Andrew... thanks
authorMichael Jerris <mike@jerris.com>
Wed, 19 Mar 2008 15:18:19 +0000 (15:18 +0000)
committerMichael Jerris <mike@jerris.com>
Wed, 19 Mar 2008 15:18:19 +0000 (15:18 +0000)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@7926 d0543943-73ff-0310-b7d9-9358b9ac24b2

build/freeswitch.init.redhat

index 2047018c70faae4755b88f74bdd3c4ab28a2b8c2..25ad9bbee06ba6c0f0cbfef756e39d39fdfcb689 100644 (file)
@@ -22,6 +22,7 @@ fi
 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 @@ start() {
             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 @@ stop() {
             echo
             return 1;
         fi
-       /opt/freeswitch/bin/freeswitch -stop
+       /opt/freeswitch/bin/freeswitch -stop > /dev/null 2>&1
         killproc freeswitch
        RETVAL=$?
        echo