[PATCH] Adding support for reloading configuration via systemd

Tomcsanyi, Domonkos domi at tomcsanyi.net
Thu Jul 23 16:10:11 CEST 2020

Signed-off-by: Domonkos P. Tomcsanyi <domi at tomcsanyi.net>
src/systemd/wg-quick at .service | 1 +
1 file changed, 1 insertion(+)

diff --git a/src/systemd/wg-quick at .service b/src/systemd/wg-quick at .service
index a9cbb58..8eb040b 100644
--- a/src/systemd/wg-quick at .service
+++ b/src/systemd/wg-quick at .service
@@ -15,6 +15,7 @@ Type=oneshot
ExecStart=/usr/bin/wg-quick up %i
ExecStop=/usr/bin/wg-quick down %i
+ExecReload=/bin/bash -c '/usr/bin/wg syncconf %i <(/usr/bin/wg-quick strip


Not the cleanest solution, but I think it might help a lot of people, so I'm
submitting it.

More information about the WireGuard mailing list