X-Git-Url: https://git.distorted.org.uk/~mdw/hippotat/blobdiff_plain/e7f20f23664234d4a36c4af12439195fc36181b6..1d33eef34159fefbafbade2c09ead1c5c23ff32c:/debian/hippotat.hippotatd.init?ds=sidebyside 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