Testing startstop again

This commit is contained in:
Rick Falkvinge
2013-06-05 08:12:11 +00:00
parent 854e6c6a97
commit fcde8bd0c1
+2 -2
View File
@@ -52,7 +52,7 @@ do_start()
# 1 if daemon was already running
# 2 if daemon could not be started
echo "Starting Swarmops backend..."
start-stop-daemon --start --pidfile $PIDFILE --exec $MONO --make-pidfile --chdir $DAEMON --name $NAME --background --test $DAEMON/$BINARY \
start-stop-daemon --start --pidfile $PIDFILE --exec $MONO --make-pidfile --chdir $DAEMON --name $NAME --background --test $DAEMON/$BINARY > /dev/null \
|| return 1
start-stop-daemon --start --pidfile $PIDFILE --exec $MONO --make-pidfile --chdir $DAEMON --name $NAME --background $DAEMON/$BINARY \
|| return 2
@@ -71,7 +71,7 @@ do_stop()
# 1 if daemon was already stopped
# 2 if daemon could not be stopped
# other if a failure occurred
start-stop-daemon --stop --quiet --retry=TERM/120/KILL/5 --pidfile $PIDFILE --name $NAME
start-stop-daemon --stop --retry=TERM/120/KILL/5 --pidfile $PIDFILE
RETVAL="$?"
[ "$RETVAL" = 2 ] && return 2
# Wait for children to finish too if this is a daemon that forks