Re: [systemd-devel] Support for staged startup

2015-02-02 Thread Lennart Poettering
On Thu, 29.01.15 17:20, Hoyer, Marko (ADITG/SW2) (mho...@de.adit-jv.com) wrote: Hi all, I'd like to realize a staged startup with systemd which is mainly about: - starting up a static tree up to a final service - the only job of the final service is to kick off the start of an additional

Re: [systemd-devel] Support for staged startup

2015-02-02 Thread Hoyer, Marko (ADITG/SW2)
Hello, thx for the answer. If you do not use --no-block to start your second target, first target will never finish. That's something I cannot confirm. If you define the service, which is calling systemctl start xxx, as oneshot the service will be in state activating for exactly the time

Re: [systemd-devel] Support for staged startup

2015-02-02 Thread Hoyer, Marko (ADITG/SW2)
Hello, thx for the answer. Why not start the final sub-tree units the conventional way, but make them all wait, listening on sockets?A final service need not contain a 'systemctl start xxx.target' command, as instead it could simply write a message to those sockets. Some services could

Re: [systemd-devel] Support for staged startup

2015-01-31 Thread Alison Chaiken
I asked: I don't know of any use case for one unit to start another directly. Is there one? Marko responds: 1.) Coming up with a small tree first reduces the loading time of the unit set (not so much important in my case) 2.) If you wanna create some dynamics between target A and target B

Re: [systemd-devel] Support for staged startup

2015-01-30 Thread Umut Tezduyar Lindskog
Hi, What you have figured out is so far the only way if you want to have dynamic targets. If you do not use --no-block to start your second target, first target will never finish. Other caveat of your way is that systemd doesn't know about your final target until it receives systemctl start

Re: [systemd-devel] Support for staged startup

2015-01-29 Thread Alison Chaiken
Marko Hoyer asks: I'd like to realize a staged startup with systemd which is mainly about: - starting up a static tree up to a final service - the only job of the final service is to kick off the start of an additional sub tree of units This kind of startup could be realized simply by adding

Re: [systemd-devel] Support for staged startup

2015-01-29 Thread Hoyer, Marko (ADITG/SW2)
Hi Alison, -Original Message- From: Alison Chaiken [mailto:ali...@she-devel.com] Sent: Thursday, January 29, 2015 8:17 PM To: systemd-devel@lists.freedesktop.org Cc: Hoyer, Marko (ADITG/SW2) Subject: Re: Support for staged startup Marko Hoyer asks: I'd like to realize a staged