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

2019-05-20 Thread Ulrich Windl
>>> Lennart Poettering schrieb am 16.05.2019 um 10:29 in Nachricht <20190516082910.GA24042@gardel-login>: > On Do, 16.05.19 08:55, Ulrich Windl (ulrich.wi...@rz.uni‑regensburg.de) wrote: > >> Hi! >> >> After having read the page again, it's not more clear than >> before. Even I have some more

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

2019-05-16 Thread Lennart Poettering
On Do, 16.05.19 12:04, Ulrich Windl (ulrich.wi...@rz.uni-regensburg.de) wrote: > > This is explained in the documentation btw: > > https://www.freedesktop.org/software/systemd/man/systemd.generator.html > > > > Long story short: it's about unit file precedence. > > Sorry I don't get it: So the

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

2019-05-16 Thread Zbigniew Jędrzejewski-Szmek
On Thu, May 16, 2019 at 12:04:28PM +0200, Ulrich Windl wrote: > >>> Lennart Poettering schrieb am 16.05.2019 um 10:29 > in > Nachricht <20190516082910.GA24042@gardel-login>: > > On Do, 16.05.19 08:55, Ulrich Windl (ulrich.wi...@rz.uni‑regensburg.de) > wrote: > > > >> Hi! > >> > >> After having

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

2019-05-16 Thread Ulrich Windl
>>> Lennart Poettering schrieb am 16.05.2019 um 10:29 in Nachricht <20190516082910.GA24042@gardel-login>: > On Do, 16.05.19 08:55, Ulrich Windl (ulrich.wi...@rz.uni‑regensburg.de) wrote: > >> Hi! >> >> After having read the page again, it's not more clear than >> before. Even I have some more

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

2019-05-16 Thread Lennart Poettering
On Do, 16.05.19 08:55, Ulrich Windl (ulrich.wi...@rz.uni-regensburg.de) wrote: > Hi! > > After having read the page again, it's not more clear than > before. Even I have some more questions: > > Why do generators receive three directory paths: Should the > generator decide where at those three

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

2019-05-16 Thread Ulrich Windl
Hi! After having read the page again, it's not more clear than before. Even I have some more questions: Why do generators receive three directory paths: Should the generator decide where at those three paths to add a unit? How should it know? Wouldn't it be easier to provide one path and

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

2019-05-15 Thread Trent Piepho
On Wed, 2019-05-15 at 10:03 +, systemd-devel- requ...@lists.freedesktop.org wrote: > > > If you are looking for a generic converter of foreign stuff into > classic, persistent systemd unit files, then generators is not what > you should be using. Generators are life-cycle bound to systemd >

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

2019-05-15 Thread Reindl Harald
Am 15.05.19 um 13:12 schrieb Ulrich Windl: >> Well, there can always be more examples, but "generators" are >> inherently an advanced concept: if you are writing a generator, then >> you already should be pro enough to be able to consult the sources of >> the various generators shipped with

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

2019-05-15 Thread Ulrich Windl
>>> Lennart Poettering schrieb am 15.05.2019 um 12:20 in Nachricht <20190515102024.GB23038@gardel-login>: > On Mi, 15.05.19 12:12, Ulrich Windl (ulrich.wi...@rz.uni-regensburg.de) > wrote: > >> >>> Lennart Poettering schrieb am 15.05.2019 um 12:04 >> in >> Nachricht

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

2019-05-15 Thread Lennart Poettering
On Mi, 15.05.19 12:12, Ulrich Windl (ulrich.wi...@rz.uni-regensburg.de) wrote: > >>> Lennart Poettering schrieb am 15.05.2019 um 12:04 > in > Nachricht <20190515100400.GB22945@gardel-login>: > > On Mi, 15.05.19 12:01, Ulrich Windl (ulrich.wi...@rz.uni‑regensburg.de) > wrote: > > > >> > Writing a

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

2019-05-15 Thread Lennart Poettering
On Mi, 15.05.19 12:08, Ulrich Windl (ulrich.wi...@rz.uni-regensburg.de) wrote: > > I mean, if you want to persistently enable a unit that is converted > > from something else, then please write your own converted, and write > > something to /etc/systemd/system, there's no need whatsoever to

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

2019-05-15 Thread Ulrich Windl
>>> Lennart Poettering schrieb am 15.05.2019 um 12:04 in Nachricht <20190515100400.GB22945@gardel-login>: > On Mi, 15.05.19 12:01, Ulrich Windl (ulrich.wi...@rz.uni‑regensburg.de) wrote: > >> > Writing a generator is not a typical user would do. It's what a >> > developer of a package would do,

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

2019-05-15 Thread Ulrich Windl
>>> Lennart Poettering schrieb am 15.05.2019 um 12:03 in Nachricht <20190515100311.GA22945@gardel-login>: > On Mi, 15.05.19 11:57, Ulrich Windl (ulrich.wi...@rz.uni‑regensburg.de) wrote: > >> >> could call "systemctl add‑wants ‑‑transient" to do the job, >> >> but at that point, that's more

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

2019-05-15 Thread Lennart Poettering
On Mi, 15.05.19 12:01, Ulrich Windl (ulrich.wi...@rz.uni-regensburg.de) wrote: > > Writing a generator is not a typical user would do. It's what a > > developer of a package would do, and yes, in that case, when you write > > code you need a bit more understanding of the underpinnings and need >

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

2019-05-15 Thread Lennart Poettering
On Mi, 15.05.19 11:57, Ulrich Windl (ulrich.wi...@rz.uni-regensburg.de) wrote: > >> 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 > >>