diff --git a/.gitignore b/.gitignore index 898f572..4fd3493 100644 --- a/.gitignore +++ b/.gitignore @@ -32,3 +32,4 @@ yarn-error.log* *.njsproj *.sln *.sw? +.history \ No newline at end of file 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