[PATCH] wg-quick at .service: Add deps on wg-quick.target

Unit 193 unit193 at unit193.net
Mon Apr 3 21:51:17 UTC 2023

From: Doug Freed <dwfreed at 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 at mtu.edu>
 src/systemd/wg-quick at .service | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

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

More information about the WireGuard mailing list