don't hang there

This commit is contained in:
Gwenhael Le Moine 2015-01-09 21:14:04 +01:00
parent 70997545da
commit bd6b3fc46e

View file

@ -36,7 +36,7 @@ func_stop() {
func_start() {
echo -n "Starting $NAME ... "
su - $USERNAME -c "$CMD $OPTIONS"
su - $USERNAME -c "$CMD $OPTIONS" &
sleep 2
if [ "$(ps aux | grep $PROCESSNAME | grep -v grep)" ]; then