All of lore.kernel.org
 help / color / mirror / Atom feed
From: Alvin =?unknown-8bit?q?=C5=A0ipraga?= <ALSI@bang-olufsen.dk>
To: iwd@lists.01.org
Subject: [PATCH] build: add After=network-pre.target to service files
Date: Fri, 22 Jan 2021 13:56:00 +0000	[thread overview]
Message-ID: <20210122135558.588248-1-alsi@bang-olufsen.dk> (raw)

[-- Attachment #1: Type: text/plain, Size: 1149 bytes --]

systemd specifies a special passive target unit 'network-pre.target'
which may be pulled in by services that want to run before any network
interface is brought up or configured. Correspondingly, network
management services such as iwd and ead should specify
After=network-pre.target to ensure a proper ordering with respect to
this special target.

For more information, see systemd.special(7) and [1].

[1] https://www.freedesktop.org/wiki/Software/systemd/NetworkTarget/
---
 src/iwd.service.in   | 1 +
 wired/ead.service.in | 1 +
 2 files changed, 2 insertions(+)

diff --git a/src/iwd.service.in b/src/iwd.service.in
index 77819eaf..96e4abac 100644
--- a/src/iwd.service.in
+++ b/src/iwd.service.in
@@ -1,5 +1,6 @@
 [Unit]
 Description=Wireless service
+After=network-pre.target
 Before=network.target
 Wants=network.target
 
diff --git a/wired/ead.service.in b/wired/ead.service.in
index 387fdb68..6403c9e4 100644
--- a/wired/ead.service.in
+++ b/wired/ead.service.in
@@ -1,5 +1,6 @@
 [Unit]
 Description=Ethernet service
+After=network-pre.target
 Before=network.target
 Wants=network.target
 
-- 
2.29.2

             reply	other threads:[~2021-01-22 13:56 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-01-22 13:56 Alvin =?unknown-8bit?q?=C5=A0ipraga?= [this message]
2021-01-22 14:06 ` [PATCH] build: add After=network-pre.target to service files Marcel Holtmann
2021-01-22 14:17   ` Alvin =?unknown-8bit?q?=C5=A0ipraga?=
2021-01-22 14:21     ` Alvin =?unknown-8bit?q?=C5=A0ipraga?=
2021-01-22 14:23     ` Marcel Holtmann
2021-01-22 14:30       ` Alvin =?unknown-8bit?q?=C5=A0ipraga?=
2021-01-22 14:43         ` Paul Menzel
2021-01-22 15:10           ` Alvin =?unknown-8bit?q?=C5=A0ipraga?=

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20210122135558.588248-1-alsi@bang-olufsen.dk \
    --to=alsi@bang-olufsen.dk \
    --cc=iwd@lists.01.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.