Bug#752075: daemontools-run: Add systemd support

Michael Biebl biebl at debian.org
Tue Jul 22 14:18:02 BST 2014


Am 22.07.2014 14:34, schrieb Gerrit Pape:
> On Fri, Jul 18, 2014 at 12:03:41PM +0000, Gerrit Pape wrote:

> --- /dev/null
> +++ b/debian/systemd/daemontools.path
> @@ -0,0 +1,9 @@
> +[Unit]
> +Description=Daemontools service monitor
> +
> +[Path]
> +DirectoryNotEmpty=/etc/service/
> +Unit=daemontools.service
> +
> +[Install]
> +WantedBy=multi-user.target

the .path unit should be hooked up in paths.target.

> diff --git a/debian/systemd/daemontools.service b/debian/systemd/daemontools.service
> new file mode 100644
> index 0000000..077e6ab
> --- /dev/null
> +++ b/debian/systemd/daemontools.service
> @@ -0,0 +1,8 @@
> +[Unit]
> +Description=Daemontools service scanner
> +
> +[Service]
> +ExecStart=/usr/bin/svscanboot /etc/service/

What about Ansgar's improvements/suggestions [1]?
E.g. adding a Documentation= header, directly using svscan, etc?


> +Restart=always
> +
> +[Install]

This seems to be a stray [Install] section?

You can either remove it or better add a Also=daemontools.path there.

This way, if someone runs
"systemctl enable daemontools.service", the corresponding path unit will
be enabled.




[1] https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=752075#60
-- 
Why is it that all of the instruments seeking intelligent life in the
universe are pointed away from Earth?

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 884 bytes
Desc: OpenPGP digital signature
URL: <http://alioth-lists.debian.net/pipermail/pkg-systemd-maintainers/attachments/20140722/1f8d8bb1/attachment-0002.sig>


More information about the Pkg-systemd-maintainers mailing list