[systemd-devel] Unclear as to why "exec" works but "oneshot" does not

Laura Smith n5d9xq3ti233xiyif2vp at protonmail.ch
Sun Apr 14 14:57:17 UTC 2024



On Sunday, 14 April 2024 at 15:21, Andrei Borzenkov <arvidjaar at gmail.com> wrote:

> If whatever your script does involves (re-)starting of sshd service, you
> have deadlock with "oneshot" - sshd service cannot proceed until your
> service startup completes and your service apparently waits on something
> that waits on your own service.
> 
> With "exec" your service startup completes right away and does not
> prevent sshd service startup.
> 

Super, thank you Andrei.

I have re-written my script to not rely on dpkg-reconfigure and now it works fine with oneshot, no more deadlock.


More information about the systemd-devel mailing list