Re: [systemd-devel] Method to Wait for service to complete

2015-08-16 Thread Harry Goldschmitt
On 8/12/15 12:32 PM, killermoehre wrote: > Am 12.08.2015 um 20:34 schrieb Harry Goldschmitt: >> I have a service that has to complete before boot can continue. Is there >> an “approved” method for doing this? >> >> >> >> I have an ugly solution I’ve come up with… I’ve created a foo.target to >> r

Re: [systemd-devel] Method to Wait for service to complete

2015-08-16 Thread Lennart Poettering
On Wed, 12.08.15 18:34, Harry Goldschmitt ([email protected]) wrote: > I have a service that has to complete before boot can continue. Is > there an "approved" method for doing this? Not sure what "boot can continue" is supposed to mean, but all systemd units support After= and Before

Re: [systemd-devel] Method to Wait for service to complete

2015-08-13 Thread Andrei Borzenkov
On 12.08.2015 21:34, Harry Goldschmitt wrote: I have a service that has to complete before boot can continue. Is there an "approved" method for doing this? "Boot can continue" is a bit vague. It is not possible to insert arbitrary synchronization point at arbitrary place in startup sequenc

Re: [systemd-devel] Method to Wait for service to complete

2015-08-12 Thread killermoehre
Am 12.08.2015 um 20:34 schrieb Harry Goldschmitt: > I have a service that has to complete before boot can continue. Is there > an “approved” method for doing this? > > > > I have an ugly solution I’ve come up with… I’ve created a foo.target to > run my foo.service and set the default.target to

[systemd-devel] Method to Wait for service to complete

2015-08-12 Thread Harry Goldschmitt
I have a service that has to complete before boot can continue. Is there an "approved" method for doing this? I have an ugly solution I've come up with... I've created a foo.target to run my foo.service and set the default.target to my foo.target. After my foo.service completes, I'm issuing "sy