aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorMartin Hauke <mardnh@gmx.de>2020-05-01 23:55:55 +0200
committerJason A. Donenfeld <Jason@zx2c4.com>2020-05-01 15:58:07 -0600
commita671cac9bd01e38ab96f7ca761990cc774869a8d (patch)
tree6eaabc5b7496939ac3a0d08afc5d135bf4bf2feb
parentterminal: specialize color_mode to stdout only (diff)
downloadwireguard-tools-a671cac9bd01e38ab96f7ca761990cc774869a8d.tar.xz
wireguard-tools-a671cac9bd01e38ab96f7ca761990cc774869a8d.zip
systemd: add wg-quick.target
Add file wg-quick.target, which allows stating 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>
-rw-r--r--src/systemd/wg-quick.target2
-rw-r--r--src/systemd/wg-quick@.service1
2 files changed, 3 insertions, 0 deletions
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/