From 75a17f16ddddc9de5c73c80a51ec5b53d383a365 Mon Sep 17 00:00:00 2001 From: xiki Date: Thu, 15 Apr 2021 19:39:33 +0200 Subject: [PATCH] update readme systemd to use reload --- README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 9247c03..7e3429e 100644 --- a/README.md +++ b/README.md @@ -113,17 +113,17 @@ This `.path` will activate unit file with the same name ``` # /etc/systemd/system/wg-gen-web.service [Unit] -Description=Restart WireGuard +Description=Reload WireGuard After=network.target [Service] Type=oneshot -ExecStart=/usr/bin/systemctl restart wg-quick@wg0.service +ExecStart=/usr/bin/systemctl reload wg-quick@wg0.service [Install] WantedBy=multi-user.target ``` -Which will restart WireGuard service +Which will reload WireGuard service ### Using ```inotifywait``` For any other init system, create a daemon running this script