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>
--- /dev/null
+[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