From 1438ba0ae4ca4ca73792bab439fa6f62db42ed6c Mon Sep 17 00:00:00 2001 From: =?utf8?q?Felix=20D=C3=B6rre?= Date: Tue, 4 Nov 2014 19:40:30 +0100 Subject: [PATCH] UPD: cleanup init scripts. --- debian/cacert-gigi.cacert-gigi-signer.init | 4 ++-- debian/cacert-gigi.cacert-gigi.init | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/debian/cacert-gigi.cacert-gigi-signer.init b/debian/cacert-gigi.cacert-gigi-signer.init index 82d35144..7e6c085e 100644 --- a/debian/cacert-gigi.cacert-gigi-signer.init +++ b/debian/cacert-gigi.cacert-gigi-signer.init @@ -46,13 +46,13 @@ do_start() { if [ ! -f /var/lib/cacert-gigi/config/gigi.properties ]; then echo Missing signer-configfile - return 2 + return 0 fi # Return # 0 if daemon has been started # 1 if daemon was already running # 2 if daemon could not be started - start-stop-daemon -b --start --quiet --pidfile $PIDFILE -d $DIR --startas $DAEMON --test > /dev/null \ + start-stop-daemon --start --quiet --pidfile $PIDFILE -d $DIR --startas $DAEMON --test > /dev/null \ || return 1 start-stop-daemon -b --start --quiet --pidfile $PIDFILE --make-pidfile -d $DIR --startas $DAEMON -- \ $DAEMON_ARGS \ diff --git a/debian/cacert-gigi.cacert-gigi.init b/debian/cacert-gigi.cacert-gigi.init index 46235d43..d31f546a 100644 --- a/debian/cacert-gigi.cacert-gigi.init +++ b/debian/cacert-gigi.cacert-gigi.init @@ -46,13 +46,13 @@ do_start() { if [ ! -f /etc/cacert-gigi/conf.tar ]; then echo Missing gigi-configfile - exit 2 + exit 0 fi # Return # 0 if daemon has been started # 1 if daemon was already running # 2 if daemon could not be started - start-stop-daemon -b --start --quiet --pidfile $PIDFILE -d $DIR --exec $DAEMON --test > /dev/null \ + start-stop-daemon --start --quiet --pidfile $PIDFILE -d $DIR --exec $DAEMON --test > /dev/null \ || return 1 start-stop-daemon -b --start --quiet --pidfile $PIDFILE --make-pidfile -d $DIR --exec $DAEMON --no-close -- \ $DAEMON_ARGS < /etc/cacert-gigi/conf.tar >> /var/log/cacert-gigi.log 2>&1 \ -- 2.39.2