]> git.ipfire.org Git - thirdparty/wireguard-tools.git/commitdiff
wg-quick@.service: add deps on wg-quick.target
authorDoug Freed <dwfreed@mtu.edu>
Mon, 3 Apr 2023 05:58:55 +0000 (01:58 -0400)
committerJason A. Donenfeld <Jason@zx2c4.com>
Mon, 23 Feb 2026 22:02:07 +0000 (23:02 +0100)
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>
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
src/systemd/wg-quick@.service

index dbdab44fb5fb8f7bafb6bf77c7d482c92620531e..41e71b8492f4e64cc76af99339407e0f5330bc0a 100644 (file)
@@ -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