* [PATCH] systemd: add file wg-quick.target
@ 2020-05-01 21:55 Martin Hauke
2020-05-01 21:58 ` Jason A. Donenfeld
0 siblings, 1 reply; 2+ messages in thread
From: Martin Hauke @ 2020-05-01 21:55 UTC (permalink / raw)
To: wireguard; +Cc: Martin Hauke
Add file wg-quick.target, which allows you to start/stop all
wg-quick@.service instances at once.
Signed-off-by: Martin Hauke <mardnh@gmx.de>
---
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/
--
2.26.2
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [PATCH] systemd: add file wg-quick.target
2020-05-01 21:55 [PATCH] systemd: add file wg-quick.target Martin Hauke
@ 2020-05-01 21:58 ` Jason A. Donenfeld
0 siblings, 0 replies; 2+ messages in thread
From: Jason A. Donenfeld @ 2020-05-01 21:58 UTC (permalink / raw)
To: Martin Hauke; +Cc: WireGuard mailing list
Applied, thanks.
https://git.zx2c4.com/wireguard-tools/commit/?id=a671cac9bd01e38ab96f7ca761990cc774869a8d
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2020-05-01 21:59 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-05-01 21:55 [PATCH] systemd: add file wg-quick.target Martin Hauke
2020-05-01 21:58 ` Jason A. Donenfeld
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).