public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] proj/netifrc:master commit in: systemd/
@ 2015-01-09 17:17 Robin H. Johnson
  0 siblings, 0 replies; 3+ messages in thread
From: Robin H. Johnson @ 2015-01-09 17:17 UTC (permalink / raw
  To: gentoo-commits

commit:     539beb672b2a131a51cfe2e6300f4b9010579375
Author:     Rabi Shanker Guha <guha.rabishankar <AT> gmail <DOT> com>
AuthorDate: Fri Jan  9 15:06:55 2015 +0000
Commit:     Robin H. Johnson <robbat2 <AT> gentoo <DOT> org>
CommitDate: Fri Jan  9 15:06:55 2015 +0000
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 0000000..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


^ permalink raw reply related	[flat|nested] 3+ messages in thread

* [gentoo-commits] proj/netifrc:master commit in: systemd/
@ 2015-01-22 23:01 Robin H. Johnson
  0 siblings, 0 replies; 3+ messages in thread
From: Robin H. Johnson @ 2015-01-22 23:01 UTC (permalink / raw
  To: gentoo-commits

commit:     5d36a7df2d7840a72ca8610649a29b7eeb592fe4
Author:     Mike Gilbert <floppym <AT> gentoo <DOT> org>
AuthorDate: Sun Jan 11 05:15:03 2015 +0000
Commit:     Robin H. Johnson <robbat2 <AT> gentoo <DOT> org>
CommitDate: Thu Jan 15 15:28:53 2015 +0000
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


^ permalink raw reply related	[flat|nested] 3+ messages in thread

* [gentoo-commits] proj/netifrc:master commit in: systemd/
@ 2019-04-21  4:18 Robin H. Johnson
  0 siblings, 0 replies; 3+ messages in thread
From: Robin H. Johnson @ 2019-04-21  4:18 UTC (permalink / raw
  To: gentoo-commits

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]


^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2019-04-21  4:19 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-01-09 17:17 [gentoo-commits] proj/netifrc:master commit in: systemd/ Robin H. Johnson
  -- strict thread matches above, loose matches on Subject: below --
2015-01-22 23:01 Robin H. Johnson
2019-04-21  4:18 Robin H. Johnson

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox