Re: WantedBy=default.target

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Am Do., 7. März 2019 um 15:47 Uhr schrieb Zbigniew Jędrzejewski-Szmek
<zbyszek@xxxxxxxxx>:
>
> 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@xxxxxxxxxxxxxx>:
> > >
> > > On Do, 07.03.19 10:30, Michael Biebl (mbiebl@xxxxxxxxx) 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

I was looking for something which documents that default.target should
not be used in general for starting your service.
I.e. when it is ok to hook up your service in default.target and when
you should use multi-user.target or graphical.target.
Basically what Lennart explain above

Regards,
Michael

-- 
Why is it that all of the instruments seeking intelligent life in the
universe are pointed away from Earth?
_______________________________________________
systemd-devel mailing list
systemd-devel@xxxxxxxxxxxxxxxxxxxxx
https://lists.freedesktop.org/mailman/listinfo/systemd-devel




[Index of Archives]     [LARTC]     [Bugtraq]     [Yosemite Forum]     [Photo]

  Powered by Linux