From 238ca4059136f5cd8a2f7defbf1772a9eafe8625 Mon Sep 17 00:00:00 2001 From: Martin Hauke Date: Fri, 1 May 2020 23:55:55 +0200 Subject: 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 Signed-off-by: Jason A. Donenfeld --- src/systemd/wg-quick.target | 2 ++ src/systemd/wg-quick@.service | 1 + 2 files changed, 3 insertions(+) create mode 100644 src/systemd/wg-quick.target diff --git a/src/systemd/wg-quick.target b/src/systemd/wg-quick.target new file mode 100644 index 0000000..c209890 --- /dev/null +++ b/src/systemd/wg-quick.target @@ -0,0 +1,2 @@ +[Unit] +Description=WireGuard Tunnels via wg-quick(8) diff --git a/src/systemd/wg-quick@.service b/src/systemd/wg-quick@.service index 7c5f9d1..a9cbb58 100644 --- a/src/systemd/wg-quick@.service +++ b/src/systemd/wg-quick@.service @@ -2,6 +2,7 @@ Description=WireGuard via wg-quick(8) for %I After=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(8) Documentation=https://www.wireguard.com/ -- cgit v1.2.3-59-g8ed1b