systemd: add wg-quick.target

Add file wg-quick.target, which allows starting and stopping all
wg-quick@.service instances at once.

Signed-off-by: Martin Hauke <mardnh@gmx.de>
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
This commit is contained in:
Martin Hauke 2020-05-01 23:55:55 +02:00 committed by Jason A. Donenfeld
parent 891fb523a2
commit 238ca40591
2 changed files with 3 additions and 0 deletions

View file

@ -0,0 +1,2 @@
[Unit]
Description=WireGuard Tunnels via wg-quick(8)

View file

@ -2,6 +2,7 @@
Description=WireGuard via wg-quick(8) for %I Description=WireGuard via wg-quick(8) for %I
After=network-online.target nss-lookup.target After=network-online.target nss-lookup.target
Wants=network-online.target nss-lookup.target Wants=network-online.target nss-lookup.target
PartOf=wg-quick.target
Documentation=man:wg-quick(8) Documentation=man:wg-quick(8)
Documentation=man:wg(8) Documentation=man:wg(8)
Documentation=https://www.wireguard.com/ Documentation=https://www.wireguard.com/