X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ian/git?a=blobdiff_plain;f=debian%2Fhippotat.hippotatd.init;fp=debian%2Fhippotat.hippotatd.init;h=fbee31fa79ee1a8f4bb78f976ee5751b2ae4c5cc;hb=1d33eef34159fefbafbade2c09ead1c5c23ff32c;hp=ac91e3a87915c9536eb15bc54a3c408db0d88891;hpb=e7f20f23664234d4a36c4af12439195fc36181b6;p=hippotat.git diff --git a/debian/hippotat.hippotatd.init b/debian/hippotat.hippotatd.init index ac91e3a..fbee31f 100644 --- a/debian/hippotat.hippotatd.init +++ b/debian/hippotat.hippotatd.init @@ -10,7 +10,7 @@ # Description: Asinine IP over HTTP server ### END INIT INFO -DAEMON=/usr/sbin/hippotat +DAEMON=/usr/sbin/hippotatd MASTER_CONFIG=/etc/hippotat/master.cfg USER=Debian-hippotat PIDFILE=/var/run/hippotat/hippotatd.pid @@ -40,7 +40,7 @@ as_user_userv () { ssd () { set +e - start-stop-daemon --start --quiet --user $USER --pidfile=$PIDFILE "$@" + start-stop-daemon --quiet --user $USER --pidfile=$PIDFILE "$@" rc=$? set -e } @@ -71,12 +71,12 @@ check_firewall () { do_start () { check_firewall ensure_dirs - ssd --chuid $USER --startas \ + ssd --chuid $USER --start --startas \ $AUTHBIND $DAEMON --daemon --pidfile=$PIDFILE \ --syslog-facility=$LOGFACILITY $HIPPOTATD_ARGS } do_stop () { - ssd --stop --retry 5 + ssd --stop --oknodo --retry 5 } case "$1" in