Skip to contentSkip to conversation

[email protected]: Add deps on wg-quick.target

PATCH New Unit 193 1 participant 1 message Apr 3, 2023

lore
Share & tools
lore

Unit 193

author
#0 lore raw

PATCH 1/1 [email protected]: Add deps on wg-quick.target

From: Doug Freed <[email protected]>

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"

---
 src/systemd/[email protected] | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
src/systemd/[email protected] +2 -1
index dbdab44..41e71b8 100644
@@ -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
Signature · 1 line
2.39.2