From 25367ad4963b246ac77028f07ecbedf393e30b66 Mon Sep 17 00:00:00 2001 From: Ian Jackson Date: Sun, 9 Apr 2017 13:02:57 +0100 Subject: [PATCH] initscript: use authbind Signed-off-by: Ian Jackson --- debian/control | 1 + debian/hippotat.init | 5 +++-- 2 files changed, 4 insertions(+), 2 deletions(-) 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 () { -- 2.30.2