From: Martin Hauke <mardnh@gmx.de>
To: wireguard@lists.zx2c4.com
Cc: Martin Hauke <mardnh@gmx.de>
Subject: [PATCH] systemd: add file wg-quick.target
Date: Fri, 1 May 2020 23:55:55 +0200 [thread overview]
Message-ID: <20200501215555.9775-1-mardnh@gmx.de> (raw)
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
next reply other threads:[~2020-05-01 21:56 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-05-01 21:55 Martin Hauke [this message]
2020-05-01 21:58 ` Jason A. Donenfeld
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20200501215555.9775-1-mardnh@gmx.de \
--to=mardnh@gmx.de \
--cc=wireguard@lists.zx2c4.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).