mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-04-15 16:39:14 +00:00
redhat init file tweak from Andrew... thanks
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@7926 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
parent
40c3e6c323
commit
cd7cfc202f
@ -22,6 +22,7 @@ fi
|
|||||||
prog=freeswitch
|
prog=freeswitch
|
||||||
pidfile=/opt/freeswitch/log/freeswitch.pid
|
pidfile=/opt/freeswitch/log/freeswitch.pid
|
||||||
FS_USER=freeswitch
|
FS_USER=freeswitch
|
||||||
|
FS_FILE=/opt/freeswitch/bin/freeswitch
|
||||||
lockfile=/var/lock/subsys/freeswitch
|
lockfile=/var/lock/subsys/freeswitch
|
||||||
RETVAL=0
|
RETVAL=0
|
||||||
|
|
||||||
@ -38,8 +39,9 @@ start() {
|
|||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
daemon --user $FS_USER --pidfile $pidfile $prog $FREESWITCH_PARAMS
|
daemon --user $FS_USER --pidfile $pidfile "$FS_FILE $FREESWITCH_PARAMS >/dev/null 2>&1"
|
||||||
RETVAL=$?
|
echo
|
||||||
|
RETVAL=$?
|
||||||
[ $RETVAL -eq 0 ] && touch $lockfile;
|
[ $RETVAL -eq 0 ] && touch $lockfile;
|
||||||
return $RETVAL
|
return $RETVAL
|
||||||
}
|
}
|
||||||
@ -52,7 +54,7 @@ stop() {
|
|||||||
echo
|
echo
|
||||||
return 1;
|
return 1;
|
||||||
fi
|
fi
|
||||||
/opt/freeswitch/bin/freeswitch -stop
|
/opt/freeswitch/bin/freeswitch -stop > /dev/null 2>&1
|
||||||
killproc freeswitch
|
killproc freeswitch
|
||||||
RETVAL=$?
|
RETVAL=$?
|
||||||
echo
|
echo
|
||||||
|
Loading…
x
Reference in New Issue
Block a user