<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Tue, Apr 26, 2016 at 9:27 AM, george Karakou <span dir="ltr"><<a href="mailto:mad-proffessor@hotmail.com" target="_blank">mad-proffessor@hotmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi list, how are you all? I hope everyone is doing well.<br>
I have a long starting unit that executes some(many actually) scripts and with the parallel nature of systemd init process it doesn't fully start up before some other units i have starting after it. Meaning "After=" directives in [Unit] section don't fully fill my needs here.<br></blockquote><div><br></div><div>No, that's *exactly* the case for After= directives. To disable parallelization for some parts of the boot process, you use Before= and After= – that's it.</div><div><br></div><div>That said, if After=foo.service doesn't work properly, it usually means foo.service is lying to systemd about when it has "finished starting". If that's the case, you'd have exactly the same problems no matter what kind of serialization you try to enable.</div><div><br></div><div>If your megascript starts multiple daemons, then maybe it should be split into several independent .service units, one for each daemon? If that's not acceptable, try changing it to Type=notify, and make it use `systemd-notify READY=1` once it's done.</div></div><div><br></div>-- <br><div class="gmail_signature"><div dir="ltr">Mantas Mikulėnas <<a href="mailto:grawity@gmail.com" target="_blank">grawity@gmail.com</a>></div></div>
</div></div>