Skip to contentSkip to conversation

systemd: add file wg-quick.target

PATCH Applied Martin Hauke 2 participants 2 messages May 1, 2020

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 systemd: add file wg-quick.target

Add file wg-quick.target, which allows you to start/stop all [email protected] instances at once.

---
 src/systemd/wg-quick.target   | 2 ++
 src/systemd/[email protected] | 1 +
 2 files changed, 3 insertions(+)
 create mode 100644 src/systemd/wg-quick.target
src/systemd/wg-quick.target new file +2 -0
new file mode 100644
index 0000000..c209890
@@ -0,0 +1,2 @@
+[Unit]
+Description=WireGuard Tunnels via wg-quick(8)
src/systemd/[email protected] +1 -0
index 7c5f9d1..a9cbb58 100644
@@ -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/

--
2.26.2