Merge pull request #82 from xiki808/update-readme-systemd

Update readme systemd
This commit is contained in:
vx3r 2021-04-25 23:07:25 +02:00 committed by GitHub
commit 2504d13383
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 3 deletions

1
.gitignore vendored
View File

@ -32,3 +32,4 @@ yarn-error.log*
*.njsproj
*.sln
*.sw?
.history

View File

@ -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