[gentoo-commits] proj/netifrc:master commit in: systemd/
commit: 2bdede1475af959881ff6211320e9c8e12d67e2a Author: Martin Väth mvath de> AuthorDate: Fri Aug 17 11:21:07 2018 + Commit: Robin H. Johnson gentoo org> CommitDate: Sun Apr 21 04:18:23 2019 + 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 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]
[gentoo-commits] proj/netifrc:master commit in: systemd/
commit: 5d36a7df2d7840a72ca8610649a29b7eeb592fe4 Author: Mike Gilbert floppym AT gentoo DOT org AuthorDate: Sun Jan 11 05:15:03 2015 + Commit: Robin H. Johnson robbat2 AT gentoo DOT org CommitDate: Thu Jan 15 15:28:53 2015 + URL: http://sources.gentoo.org/gitweb/?p=proj/netifrc.git;a=commit;h=5d36a7df systemd: Unit file improvements - Remove quotes from description. - Set Type=oneshot. --- systemd/net_at.service.in | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/systemd/net_at.service.in b/systemd/net_at.service.in index a729ec4..ac89899 100644 --- a/systemd/net_at.service.in +++ b/systemd/net_at.service.in @@ -1,7 +1,8 @@ [Unit] -Description=Gentoo Network Interface Management Scripts +Description=Gentoo Network Interface Management Scripts [Service] +Type=oneshot ExecStart=@LIBEXECDIR@/sh/systemd-wrapper.sh -i %I start ExecStop=@LIBEXECDIR@/sh/systemd-wrapper.sh -i %I stop RemainAfterExit=yes
[gentoo-commits] proj/netifrc:master commit in: systemd/
commit: 539beb672b2a131a51cfe2e6300f4b9010579375 Author: Rabi Shanker Guha guha.rabishankar AT gmail DOT com AuthorDate: Fri Jan 9 15:06:55 2015 + Commit: Robin H. Johnson robbat2 AT gentoo DOT org CommitDate: Fri Jan 9 15:06:55 2015 + URL: http://sources.gentoo.org/gitweb/?p=proj/netifrc.git;a=commit;h=539beb67 Unit file --- systemd/net_at.service.in | 10 ++ 1 file changed, 10 insertions(+) diff --git a/systemd/net_at.service.in b/systemd/net_at.service.in new file mode 100644 index 000..a729ec4 --- /dev/null +++ b/systemd/net_at.service.in @@ -0,0 +1,10 @@ +[Unit] +Description=Gentoo Network Interface Management Scripts + +[Service] +ExecStart=@LIBEXECDIR@/sh/systemd-wrapper.sh -i %I start +ExecStop=@LIBEXECDIR@/sh/systemd-wrapper.sh -i %I stop +RemainAfterExit=yes + +[Install] +WantedBy=multi-user.target