[systemd-devel] Antw: Re: Antw: Re: Re: "bad" status for genersated target; why?
Ulrich.Windl at rz.uni-regensburg.de
Wed May 15 09:57:05 UTC 2019
>>> Lennart Poettering <lennart at poettering.net> schrieb am 15.05.2019 um 11:31
Nachricht <20190515093135.GF22719 at gardel-login>:
> 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
>> 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.
I didn't see it that way: Generated units are just as units installed by some
package manager, but specific to the local configuration. So why to make
differences?: A unit is a file that is found by systemd (after the generators
> Lennart Poettering, Berlin
> systemd-devel mailing list
> systemd-devel at lists.freedesktop.org
More information about the systemd-devel