init scripts: Don't error out when stopping in restart action
[hcoop/domtool2.git] / scripts / domtool-slave
index 73c9f4b..2653813 100755 (executable)
@@ -16,7 +16,7 @@ case $1 in
                start-stop-daemon --start --pidfile $PIDFILE \
                        -c domtool:domtool \
                        --exec /usr/bin/k5start -- -U -b \
-                       -f /etc/keytabs/domtool.`hostname` \
+                       -f /etc/keytabs/domtool \
                        -K 300 -t -p $PIDFILE \
                        domtool-slave-logged
                echo "."
@@ -35,7 +35,7 @@ case $1 in
        ;;
 
   restart|reload|force-reload)
-       $SELF stop
+       set +e; $SELF stop; set -e
        $SELF start
        ;;