commit: 2bdede1475af959881ff6211320e9c8e12d67e2a Author: Martin Väth <martin <AT> mvath <DOT> de> AuthorDate: Fri Aug 17 11:21:07 2018 +0000 Commit: Robin H. Johnson <robbat2 <AT> gentoo <DOT> org> CommitDate: Sun Apr 21 04:18:23 2019 +0000 URL: https://gitweb.gentoo.org/proj/netifrc.git/commit/?id=2bdede14
systemd should not fail if a service is backgrounding To achieve this, accept 1 (backgrounding) as a valid exit code. An alternative might be to return 0 (or a different exit code which is accepted) for background operations like e.g. in line 181 of net/wpa_supplicant.sh Signed-off-by: Robin H. Johnson <robbat2 <AT> gentoo.org> systemd/net_at.service.in | 1 + 1 file changed, 1 insertion(+) diff --git a/systemd/net_at.service.in b/systemd/net_at.service.in index ac89899..5c3d911 100644 --- a/systemd/net_at.service.in +++ b/systemd/net_at.service.in @@ -5,6 +5,7 @@ Description=Gentoo Network Interface Management Scripts Type=oneshot ExecStart=@LIBEXECDIR@/sh/systemd-wrapper.sh -i %I start ExecStop=@LIBEXECDIR@/sh/systemd-wrapper.sh -i %I stop +SuccessExitStatus=1 RemainAfterExit=yes [Install]