From 3e6bb79515e3919eaee80397a115b6a4f9f2b96a Mon Sep 17 00:00:00 2001 From: "Jason A. Donenfeld" Date: Mon, 14 May 2018 18:14:55 +0200 Subject: tools: reorganize for multiplatform wg-quick --- src/tools/systemd/wg-quick@.service | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 src/tools/systemd/wg-quick@.service (limited to 'src/tools/systemd') diff --git a/src/tools/systemd/wg-quick@.service b/src/tools/systemd/wg-quick@.service new file mode 100644 index 0000000..da5d787 --- /dev/null +++ b/src/tools/systemd/wg-quick@.service @@ -0,0 +1,19 @@ +[Unit] +Description=WireGuard via wg-quick(8) for %I +After=network-online.target +Wants=network-online.target +Documentation=man:wg-quick(8) +Documentation=man:wg(8) +Documentation=https://www.wireguard.com/ +Documentation=https://www.wireguard.com/quickstart/ +Documentation=https://git.zx2c4.com/WireGuard/about/src/tools/man/wg-quick.8 +Documentation=https://git.zx2c4.com/WireGuard/about/src/tools/man/wg.8 + +[Service] +Type=oneshot +RemainAfterExit=yes +ExecStart=/usr/bin/wg-quick up %i +ExecStop=/usr/bin/wg-quick down %i + +[Install] +WantedBy=multi-user.target -- cgit v1.2.3-59-g8ed1b