Skip to content

Commit

Permalink
Fixes missing binary in systemd.
Browse files Browse the repository at this point in the history
This is broken on e.g. NixOS as systemd only searches a small set of
directories for command binary, which does not include `/bin` [1].

[1]: https://www.freedesktop.org/software/systemd/man/latest/systemd.service.html#Command%20lines

Signed-off-by: SEIAROTg <[email protected]>
  • Loading branch information
SEIAROTg committed Nov 28, 2024
1 parent b3c0268 commit 156fc08
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,5 @@ Type=oneshot
# Set a timeout as by default oneshot does not have one and in case network-online.target
# never comes online we do not want to block forever, 90s is the default systemd unit timeout.
TimeoutStartSec=90s
ExecStart=sh -c 'until systemctl is-active network-online.target; do sleep 0.5; done'
ExecStart=/bin/sh -c 'until systemctl is-active network-online.target; do sleep 0.5; done'
RemainAfterExit=yes

0 comments on commit 156fc08

Please sign in to comment.