On Fri, 2014-07-04 at 15:55, Michael Biebl wrote:
> Am 04.07.2014 15:22, schrieb Milan P. Stanic:
> > And for runit:
> Thanks for sharing.
> 
> > cat /etc/systemd/system/runit.service
> > [Unit]
> > Description=runit svscan
> > After=syslog.target
> 
> The After=syslog.target is no longer necessary and not recommended
> anymore. Lintian will actually complain about that.
> Syslog is started via socket activation nowadays making this explicit
> ordering obsolete.

Nice to know. Tnx.

> > 
> > [Service]
> > ExecStart=/usr/bin/runsvdir -P /etc/service 'log: 
> > ...........................................................................................................................................................................................................................................................................................................................................................................................................'
> > 
> > [Install]
> > WantedBy=networking.service
> 
> Services should be hooked up in targets. So WantedBy=networking.service
> looks wrong.
> 
> In the vast majority of cases you want WantedBy=multi-user.target

My point was not to show perfect systemd unit for runit but to show that
it is really easy to write it. It took me one minute to write and test it
and I don't know much about systemd units.

-- 
Kind regards,  Milan


--
To UNSUBSCRIBE, email to debian-devel-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: https://lists.debian.org/20140704155049.ga32...@arvanta.net

Reply via email to