Re: [systemd-devel] Deferring start of service until file exists

2019-08-27 Thread Lennart Poettering
On Mi, 21.08.19 09:32, Colin Hogben (syst...@pythontech.co.uk) wrote: > On 20/08/19 16:54, Silvio Knizek wrote: > > > The NFS root needs to be mounted in the initrd step. Else everything > > will break. With systemd in the initrd you gain the possibilty to > > depend on those units in the actual s

Re: [systemd-devel] Deferring start of service until file exists

2019-08-21 Thread Silvio Knizek
Am Mittwoch, den 21.08.2019, 09:32 +0100 schrieb Colin Hogben: > On 20/08/19 16:54, Silvio Knizek wrote: > > > The NFS root needs to be mounted in the initrd step. Else > > everything will break. With systemd in the initrd you gain the > > possibilty to depend on those units in the actual system. >

Re: [systemd-devel] Deferring start of service until file exists

2019-08-21 Thread Colin Hogben
On 20/08/19 16:54, Silvio Knizek wrote: The NFS root needs to be mounted in the initrd step. Else everything will break. With systemd in the initrd you gain the possibilty to depend on those units in the actual system. Booting with an NFS root is working fine. I'm not sure how to tell whethe

Re: [systemd-devel] Deferring start of service until file exists

2019-08-20 Thread Silvio Knizek
Am Dienstag, den 20.08.2019, 16:32 +0100 schrieb Colin Hogben: > Hi Jérémy, thanks for responding. > > > I'm not very clear on what you are trying to do, so if my > > understanding > > is correct: > > OK, I'll try to clarify. In fact I'm lumping together several > similar circumstances. It's poss

Re: [systemd-devel] Deferring start of service until file exists

2019-08-20 Thread Colin Hogben
Hi Jérémy, thanks for responding. I'm not very clear on what you are trying to do, so if my understanding is correct: OK, I'll try to clarify. In fact I'm lumping together several similar circumstances. It's possible that for at least some of these, I'm not thinking about things in the rig

Re: [systemd-devel] Deferring start of service until file exists

2019-08-20 Thread Jérémy ROSEN
I'm not very clear on what you are trying to do, so if my understanding is correct: daemon.service : the service you are trying to delay trigger_file : the file created by dhclient moreover you want daemon.service to be part of the startup transaction (I'm not certain why) and not triggered on th

[systemd-devel] Deferring start of service until file exists

2019-08-19 Thread Colin Hogben
Hi, (Hoping this is an appropriate place to ask this question...) During system start-up, I want to defer starting a unit (a service) until a particular file is written (amongst other dependencies). In my case I am writing the service's configuration file within a dhclient hook script. Any guid