X-Git-Url: https://git.distorted.org.uk/~mdw/hippotat/blobdiff_plain/05025919b9ced744608a4de40360d78a734ddc3d..25367ad4963b246ac77028f07ecbedf393e30b66:/debian/hippotat.init diff --git a/debian/hippotat.init b/debian/hippotat.init index c0e4d7e..51495e9 100644 --- a/debian/hippotat.init +++ b/debian/hippotat.init @@ -17,6 +17,7 @@ PIDFILE=/var/run/hippotat/hippotatd.pid LOGFACILITY=daemon # HIPPOTATD_ARGS DESCRIPTION='Asinine IP over HTTP server' +if type -p authbind >/dev/null 2>&1; then AUTHBIND=authbind; fi . /etc/default/hippotatd @@ -40,8 +41,8 @@ ensure_dirs () { do_start () { ensure_dirs - ssd --chuid $USER --startas \ - $DAEMON --daemon --pidfile=$PIDFILE \ + ssd --chuid $USER --startas \ + $AUTHBIND $DAEMON --daemon --pidfile=$PIDFILE \ --syslog-facility=$LOGFACILITY $HIPPOTATD_ARGS } do_stop () {