Development discussion of WireGuard
 help / color / mirror / Atom feed
* [PATCH] wg-quick@.service: Add deps on wg-quick.target
@ 2023-04-03 21:51 Unit 193
  0 siblings, 0 replies; only message in thread
From: Unit 193 @ 2023-04-03 21:51 UTC (permalink / raw)
  To: wireguard; +Cc: Doug Freed

From: Doug Freed <dwfreed@mtu.edu>

These dependencies ensure that instances of this service are started
before wg-quick.target is considered started, allowing other services
to depend on wg-quick.target to mean "all wg-quick services are started"

Signed-off-by: Doug Freed <dwfreed@mtu.edu>
---
 src/systemd/wg-quick@.service | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/systemd/wg-quick@.service b/src/systemd/wg-quick@.service
index dbdab44..41e71b8 100644
--- a/src/systemd/wg-quick@.service
+++ b/src/systemd/wg-quick@.service
@@ -1,5 +1,6 @@
 [Unit]
 Description=WireGuard via wg-quick(8) for %I
+Before=wg-quick.target
 After=network-online.target nss-lookup.target
 Wants=network-online.target nss-lookup.target
 PartOf=wg-quick.target
@@ -19,4 +20,4 @@ ExecReload=/bin/bash -c 'exec /usr/bin/wg syncconf %i <(exec /usr/bin/wg-quick s
 Environment=WG_ENDPOINT_RESOLUTION_RETRIES=infinity
 
 [Install]
-WantedBy=multi-user.target
+WantedBy=multi-user.target wg-quick.target
-- 
2.39.2


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2023-04-03 22:41 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-04-03 21:51 [PATCH] wg-quick@.service: Add deps on wg-quick.target Unit 193

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).