From fcde8bd0c1024da5e79b4898cf1b603281545a10 Mon Sep 17 00:00:00 2001 From: Rick Falkvinge Date: Wed, 5 Jun 2013 08:12:11 +0000 Subject: [PATCH] Testing startstop again --- Backend/etcinitd/swarmops-backend | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Backend/etcinitd/swarmops-backend b/Backend/etcinitd/swarmops-backend index 5c9d6622..c5597de8 100644 --- a/Backend/etcinitd/swarmops-backend +++ b/Backend/etcinitd/swarmops-backend @@ -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