From 872220744bc47f6f3bb7bd9d567f85ce3df765dc Mon Sep 17 00:00:00 2001 From: Ian Jackson Date: Sun, 26 Dec 2021 01:16:03 +0000 Subject: [PATCH] Provide a systemd service file in the source tree, but do not install it This endeavours to do what the sysvinit file does - create /var/run/userv iff necessary and start uservd -daemon. Matthew's original patch in Debian #939573 also shipped this file in the .deb. I'm not sure what the benefit of that would be and it seems to add more test complications, so for now I am leaving that part out. Signed-off-by: Matthew Vernon Signed-off-by: Ian Jackson --- debian/userv.service | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 debian/userv.service diff --git a/debian/userv.service b/debian/userv.service new file mode 100644 index 0000000..ecf7c38 --- /dev/null +++ b/debian/userv.service @@ -0,0 +1,11 @@ +[Unit] +Description=User services (security boundary) daemon +After=syslog.target remote-fs.target + +[Service] +Type=forking +ExecStartPre=/bin/sh -c 'test -d /var/run/userv || mkdir -m700 /var/run/userv' +ExecStart=/usr/sbin/uservd -daemon + +[Install] +WantedBy=multi-user.target -- 2.30.2