Gentoo Archives: gentoo-commits

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