From 156fc084a9063b8ae1e41dd54437f42c35498bcf Mon Sep 17 00:00:00 2001 From: SEIAROTg Date: Thu, 28 Nov 2024 23:19:49 +0000 Subject: [PATCH] Fixes missing binary in systemd. 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 --- contrib/systemd/user/podman-user-wait-network-online.service | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/contrib/systemd/user/podman-user-wait-network-online.service b/contrib/systemd/user/podman-user-wait-network-online.service index 757948ac0d..499e572231 100644 --- a/contrib/systemd/user/podman-user-wait-network-online.service +++ b/contrib/systemd/user/podman-user-wait-network-online.service @@ -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