From: Ian Jackson Date: Wed, 29 Dec 2021 18:36:28 +0000 (+0000) Subject: init script: Source init-functions X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ian/git?a=commitdiff_plain;h=8adc516688947b38e6c89f492d19d45f8db09ba6;p=userv.git init script: Source init-functions This will supposely make some systemd things better, according to https://lintian.debian.org/tags/init.d-script-does-not-source-init-functions Signed-off-by: Ian Jackson --- diff --git a/debian/control b/debian/control index 44d138b..ee530f4 100644 --- a/debian/control +++ b/debian/control @@ -7,7 +7,7 @@ Standards-Version: 3.9.1 Package: userv Architecture: any -Depends: ${shlibs:Depends}, ${misc:Depends} +Depends: ${shlibs:Depends}, ${misc:Depends}, lsb-base Description: `user services' - program call across trust boundaries userv allows one program to invoke another when only limited trust exists between them. It is a tool which can be used to avoid having diff --git a/debian/userv.init b/debian/userv.init index 16e95af..4a04e0c 100644 --- a/debian/userv.init +++ b/debian/userv.init @@ -12,6 +12,8 @@ test -f /usr/sbin/uservd || exit 0 +. /lib/lsb/init-functions + ensure_var_dir () { var_dir=/var/run/userv test -d "$var_dir" || mkdir -m700 "$var_dir"