chiark / gitweb /
Provide a systemd service file in the source tree, but do not install it
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Sun, 26 Dec 2021 01:16:03 +0000 (01:16 +0000)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Sun, 26 Dec 2021 01:16:03 +0000 (01:16 +0000)
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 <mv3@sanger.ac.uk>
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
debian/userv.service [new file with mode: 0644]

diff --git a/debian/userv.service b/debian/userv.service
new file mode 100644 (file)
index 0000000..ecf7c38
--- /dev/null
@@ -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