X-Git-Url: https://code.wpia.club/?p=gigi.git;a=blobdiff_plain;f=debian%2Fcacert-gigi.cacert-gigi.init;h=d044355f55a3084c11a5430d449b29602f924f3d;hp=46235d439c1f64b87db2b46a39983968ca4858d1;hb=57dc561f9679fa7afaee28f2d414dc20be69d66b;hpb=74b367ff84986a90499bf7421156be5834ca8365 diff --git a/debian/cacert-gigi.cacert-gigi.init b/debian/cacert-gigi.cacert-gigi.init index 46235d43..d044355f 100644 --- a/debian/cacert-gigi.cacert-gigi.init +++ b/debian/cacert-gigi.cacert-gigi.init @@ -46,16 +46,15 @@ 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 \ + start-stop-daemon -b --start --quiet --pidfile $PIDFILE -d $DIR --exec /usr/bin/gigi -- start-daemon \ || return 2 # The above code will not work for interpreted scripts, use the next # six lines below instead (Ref: #643337, start-stop-daemon(8) )