Development discussion of WireGuard
 help / color / Atom feed
* [PATCH] systemd: add file wg-quick.target
@ 2020-05-01 21:55 mardnh
  2020-05-01 21:58 ` Jason
  0 siblings, 1 reply; 2+ messages in thread
From: mardnh @ 2020-05-01 21:55 UTC (permalink / raw)


Add file wg-quick.target, which allows you to start/stop all
wg-quick at .service instances at once.

Signed-off-by: Martin Hauke <mardnh at gmx.de>
---
 src/systemd/wg-quick.target   | 2 ++
 src/systemd/wg-quick at .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 at .service b/src/systemd/wg-quick at .service
index 7c5f9d1..a9cbb58 100644
--- a/src/systemd/wg-quick at .service
+++ b/src/systemd/wg-quick at .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

* [PATCH] systemd: add file wg-quick.target
  2020-05-01 21:55 [PATCH] systemd: add file wg-quick.target mardnh
@ 2020-05-01 21:58 ` Jason
  0 siblings, 0 replies; 2+ messages in thread
From: Jason @ 2020-05-01 21:58 UTC (permalink / raw)


Applied, thanks.

https://git.zx2c4.com/wireguard-tools/commit/?id=a671cac9bd01e38ab96f7ca761990cc774869a8d


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

end of thread, back to index

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 mardnh
2020-05-01 21:58 ` Jason

Development discussion of WireGuard

Archives are clonable: git clone --mirror http://inbox.vuxu.org/wireguard

Example config snippet for mirrors

Newsgroup available over NNTP:
	nntp://inbox.vuxu.org/vuxu.archive.wireguard


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git