]> the.earth.li Git - onak.git/blobdiff - debian/onak.init
Add onak to Provides: in Debian init script rather than just pgp-server
[onak.git] / debian / onak.init
old mode 100755 (executable)
new mode 100644 (file)
index 7056fc1..9ab011b
@@ -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