Re: RFH: Re: Bug#752075: daemontools-run: Add systemd support
On Fri, 2014-07-04 at 14:34, Michael Biebl wrote:
> Am 04.07.2014 13:50, schrieb Gerrit Pape:
> > I hereby ask for help to add systemd support to these packages.
>
> We (pkg-systemd team) can help you with that.
>
> Let's follow up on the pkg-systemd mailing list.
>
> In most cases adding a .service file is pretty simple.
> If it's only about starting a svscanboot process, that might be as
> simple as installing a file
> /lib/systemd/system/svscanboot.service containing
>
> [Unit]
> Description=daemon tools
>
> [Service]
> ExecStart=/usr/bin/svscanboot
> Restart=always
>
> [Install]
> WantedBy=multi-user.target
>
>
>
> We probably need to tweak the Type= [1] setting depending on what type
> of service svcanboot is.
>
> [1] man systemd.service
And for runit:
cat /etc/systemd/system/runit.service
[Unit]
Description=runit svscan
After=syslog.target
[Service]
ExecStart=/usr/bin/runsvdir -P /etc/service 'log: ...........................................................................................................................................................................................................................................................................................................................................................................................................'
[Install]
WantedBy=networking.service
N.B. WantedBy=networking.service can be changed to something
appropriate.
--
Kind regards, Milan
Reply to: