[systemd-devel] WantedBy=default.target

Zbigniew Jędrzejewski-Szmek zbyszek at in.waw.pl
Thu Mar 7 14:46:39 UTC 2019


On Thu, Mar 07, 2019 at 11:31:18AM +0100, Michael Biebl wrote:
> Am Do., 7. März 2019 um 11:24 Uhr schrieb Lennart Poettering
> <lennart at poettering.net>:
> >
> > On Do, 07.03.19 10:30, Michael Biebl (mbiebl at gmail.com) wrote:
> >
> > > Looks like quite a few services use
> > > WantedBy=default.target
> > > https://codesearch.debian.net/search?q=WantedBy%3Ddefault.target
> > >
> > > Some of them are user services, but I wonder if there is
> > > recommendation regarding system services.
> > > Should they use multi-user.target or graphical.target instead or is it
> > > ok for system services to hook into default.target?
> >
> > Usually doing this for system services is wrong, but there are
> > exceptions.
> 
> [..]
> 
> > It might make sense to extend "systemd-analyze" in some form to warn
> > about this, maybe file an RFE bug about that?
> 
> I was considering filing a lintian bug, which would check debian
> packages automatically for this.
> Do we have documentation for this where I could point the lintian maintainer at?

https://www.freedesktop.org/software/systemd/man/systemd.special.html#multi-user.target

Zbyszek


More information about the systemd-devel mailing list