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

2024-04-14 Thread Laura Smith
I am running a simple service to tweak SSHD on first boot (the script is at the bottom of this mail). This is on Debian Bookworm incase it makes any difference. If I configure my service as: [Unit] Description=ITS Generate SSH Server Keys Wants=ssh.service Before=ssh.service [Service] ExecStart=

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

2024-04-14 Thread Andrei Borzenkov
On 14.04.2024 16:48, Laura Smith wrote: I am running a simple service to tweak SSHD on first boot (the script is at the bottom of this mail). This is on Debian Bookworm incase it makes any difference. If I configure my service as: [Unit] Description=ITS Generate SSH Server Keys Wants=ssh.servi

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

2024-04-14 Thread Laura Smith
On Sunday, 14 April 2024 at 15:21, Andrei Borzenkov 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