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?
signature.asc
Description: OpenPGP digital signature