Development discussion of WireGuard
 help / color / mirror / Atom feed
* [PATCH] systemd: add file wireguard.target
@ 2020-04-30 13:55 Martin Hauke
  2020-04-30 14:01 ` Riccardo Berto
  2020-04-30 23:21 ` Jason A. Donenfeld
  0 siblings, 2 replies; 5+ messages in thread
From: Martin Hauke @ 2020-04-30 13:55 UTC (permalink / raw)
  To: wireguard; +Cc: Martin Hauke

Add file wireguard.target, which allows you to stop or restart all
instances.
---
 src/systemd/wg-quick@.service | 1 +
 src/systemd/wireguard.target  | 2 ++
 2 files changed, 3 insertions(+)
 create mode 100644 src/systemd/wireguard.target

diff --git a/src/systemd/wg-quick@.service b/src/systemd/wg-quick@.service
index 7c5f9d1..c22f7b3 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=wireguard.target
 Documentation=man:wg-quick(8)
 Documentation=man:wg(8)
 Documentation=https://www.wireguard.com/
diff --git a/src/systemd/wireguard.target b/src/systemd/wireguard.target
new file mode 100644
index 0000000..8e59224
--- /dev/null
+++ b/src/systemd/wireguard.target
@@ -0,0 +1,2 @@
+[Unit]
+Description=Target to restart all parts of WireGuard
--
2.26.2


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2020-05-04 11:03 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-04-30 13:55 [PATCH] systemd: add file wireguard.target Martin Hauke
2020-04-30 14:01 ` Riccardo Berto
2020-04-30 23:21 ` Jason A. Donenfeld
2020-05-01 21:29   ` Martin Hauke
2020-05-01 21:35     ` 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).