X-Git-Url: http://the.earth.li/gitweb/?a=blobdiff_plain;f=debian%2Fonak.init;h=9ab011bd4286a892f43a62adf67e29894106d2eb;hb=f46771092d60993b448f422920fa3afec1a3e9ec;hp=7056fc1121584b1ac0ddb2fbd6d3df534dbe727c;hpb=03ac5c0515ce60eb416b574fbe8594469122b515;p=onak.git diff --git a/debian/onak.init b/debian/onak.init old mode 100755 new mode 100644 index 7056fc1..9ab011b --- a/debian/onak.init +++ b/debian/onak.init @@ -1,6 +1,6 @@ #!/bin/sh ### BEGIN INIT INFO -# Provides: pgp-keyserver +# Provides: onak pgp-keyserver # Required-Start: $remote_fs $syslog # Required-Stop: $remote_fs $syslog # Default-Start: 2 3 4 5 @@ -32,7 +32,7 @@ SCRIPTNAME=/etc/init.d/onak # and status_of_proc is working. . /lib/lsb/init-functions -if ! grep -q -E '^use_keyd *(true|yes|1)$' /etc/onak.conf; then +if ! grep -q -E '^use_keyd=*(true|yes|1)$' /etc/onak.ini; then exit 0 fi @@ -55,8 +55,7 @@ case "$1" in 1) [ "$VERBOSE" != no ] && log_end_msg 1 ;; esac ;; - restart) - force-reload) + restart|force-reload) [ "$VERBOSE" != no ] && log_daemon_msg "Restarting $DESC" "$NAME" /usr/bin/keydctl quit start-stop-daemon --stop --oknodo --user onak --exec $DAEMON