Development discussion of WireGuard
 help / color / mirror / Atom feed
From: Riccardo Berto <riccardo@rcrdbrt.com>
To: Martin Hauke <mardnh@gmx.de>, wireguard@lists.zx2c4.com
Subject: Re: [PATCH] systemd: add file wireguard.target
Date: Thu, 30 Apr 2020 16:01:29 +0200	[thread overview]
Message-ID: <4c6e0e4e-9542-489e-7bb6-84b17ce44e15@rcrdbrt.com> (raw)
In-Reply-To: <20200430135551.9911-1-mardnh@gmx.de>

Vouching for this, sounds quite useful.

On 4/30/20 3:55 PM, Martin Hauke wrote:
> 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
>

  reply	other threads:[~2020-05-04 11:03 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-04-30 13:55 Martin Hauke
2020-04-30 14:01 ` Riccardo Berto [this message]
2020-04-30 23:21 ` Jason A. Donenfeld
2020-05-01 21:29   ` Martin Hauke
2020-05-01 21:35     ` 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=4c6e0e4e-9542-489e-7bb6-84b17ce44e15@rcrdbrt.com \
    --to=riccardo@rcrdbrt.com \
    --cc=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).