]> git.ipfire.org Git - thirdparty/wireguard-tools.git/commit
systemd: add reload target to systemd unit
authorDomonkos P. Tomcsanyi <domi@tomcsanyi.net>
Fri, 24 Jul 2020 14:21:52 +0000 (16:21 +0200)
committerJason A. Donenfeld <Jason@zx2c4.com>
Fri, 24 Jul 2020 14:23:47 +0000 (16:23 +0200)
commita66219fa107e1bf0a03ebbbc405879c1f0a826c5
tree635935fdfd8dbe930f1619e1056b7fd79a5b962a
parenteb4665ecf082033d986c64453e2becce19bc7af7
systemd: add reload target to systemd unit

Users can now run `systemctl reload wg-quick@wgnet0`, as described in
the wg-quick(8) man page. Note that this won't adjust Address=, DNS=, or
the various other non-wg(8) fields.

Signed-off-by: Domonkos P. Tomcsanyi <domi@tomcsanyi.net>
[zx2c4: use exec for bash commands to reduce excess forks, and rewrite
        commit message]
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
src/systemd/wg-quick@.service