Hi Michael, thanks for your help.

On Mon, Jul 07, 2014 at 02:59:05PM +0200, Michael Biebl wrote:
> [CCing the bug report]
> 
> Am 07.07.2014 14:39, schrieb Jonathan de Boyne Pollard:
> > I did systemd units for this ages ago.  It's better to do this as two
> > units: a "path" unit that watches the service directory and a
> > "service" unit that is started when the service directory is found to
> > be non-empty.

Hi Jonathan, good to see you're still around.  Thanks for your
contribution.

>   And you don't need svscanboot at all, since systemd's
> > journal logs the output of svscan and does it better than
> > readproctitle does.
> 
> Ansgar suggested using the journal for that as well [1], which sounds
> reasonable.

Is this journal an in-memory-log, or does it write to disk?

>   And don't forget to run "systemctl
> > preset svscan.path" as part of your package installation process.
> > (I've heard rumours that "update-rc.d svscan.path defaults" runs
> > "systemctl preset svscan.path" in some testing versions somewhere; but
> > I've not witnessed this myself.)
> 
> As Ansgar already mentioned, probably the best way to handle that in
> Debian is to use the dh-systemd helper.
> Unfortuantely the daemontools package doesn't use debhelper, which
> complicates that a bit it.

To me, that's not unfortunate. To me, debhelper complicates things.  It
can't be that difficult to enable a service, configure it to be enabled
by default, and vice-versa.

To see what snippets debhelper puts into maintainer scripts, can you
point me to an example package in Debian that installs simple systemd
services, Michael?  I search for files containing systemd in the debian
package directory, but with no applicable result.

Regards, Gerrit.


-- 
To UNSUBSCRIBE, email to debian-bugs-rc-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to