From 8adc516688947b38e6c89f492d19d45f8db09ba6 Mon Sep 17 00:00:00 2001 From: Ian Jackson Date: Wed, 29 Dec 2021 18:36:28 +0000 Subject: [PATCH] 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 --- debian/control | 2 +- debian/userv.init | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) 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" -- 2.30.2