From: Ian Jackson Date: Sun, 9 Apr 2017 12:02:57 +0000 (+0100) Subject: initscript: use authbind X-Git-Tag: hippotat/1.0.0~55^2~65 X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ian/git?p=hippotat.git;a=commitdiff_plain;h=25367ad4963b246ac77028f07ecbedf393e30b66 initscript: use authbind Signed-off-by: Ian Jackson --- diff --git a/debian/control b/debian/control index 8a91c22..5274837 100644 --- a/debian/control +++ b/debian/control @@ -4,6 +4,7 @@ Maintainer: Ian Jackson Package: hippotat Depends: python3, ${python3:Depends} +Recommends: authbind Architecture: all Description: IP Over HTTP (Asinine) IP-over-HTTP client and server. 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 () {