[systemd-devel] Antw: Re: Re: "bad" status for genersated target; why?

Lennart Poettering lennart at poettering.net
Wed May 15 09:31:35 UTC 2019


On Mi, 15.05.19 11:29, Jérémy ROSEN (jeremy.rosen at smile.fr) wrote:

> well, in another thread, it was discussed why generated should never have
> an install section and why enablement does not make sense for them...
> so no it's not a bug.
>
> Arguably, yes, generators do need to care about symlinks, though, maybe the
> could call "systemctl add-wants --transient" to do the job,
> but at that point, that's more pedantic than practical. If you write a
> generator, your systemd-fu should be high enough to know and
> understand systemd's symlink mechanisms...

Precisely. if you write your own generator, then you need to know what
you do, and need to know how to place your symlinks. You are
essentially writing your own unit file installer that way and are
expected to create your own symlinks then.

Lennart

--
Lennart Poettering, Berlin


More information about the systemd-devel mailing list