]> WPIA git - cassiopeia.git/blobdiff - debian/cacert-cassiopeia.init
fix: Make a missing configfile not result in an error
[cassiopeia.git] / debian / cacert-cassiopeia.init
index 4352885c9531a231b197ac9a38bd5d347b74cd25..5ce7b2ac4733e5514270a9963a2a26282683e3d3 100644 (file)
@@ -46,7 +46,7 @@ do_start()
 {
        if [ ! -f /var/lib/cacert-gigi/config.txt ]; then
                echo Missing cassiopeia-configfile
-                exit 2
+                exit 0
         fi
        # Return
        #   0 if daemon has been started
@@ -55,7 +55,7 @@ do_start()
         start-stop-daemon -b --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 -c nobody --exec $DAEMON --no-close -- \
-               >> /var/log/cassiopeia.log 2>&1 \
+               >> /var/log/cacert-cassiopeia.log 2>&1 \
                || return 2
        # The above code will not work for interpreted scripts, use the next
        # six lines below instead (Ref: #643337, start-stop-daemon(8) )