mirror of
https://github.com/vx3r/wg-gen-web.git
synced 2024-12-18 00:13:23 +00:00
Merge pull request #82 from xiki808/update-readme-systemd
Update readme systemd
This commit is contained in:
commit
2504d13383
1
.gitignore
vendored
1
.gitignore
vendored
@ -32,3 +32,4 @@ yarn-error.log*
|
|||||||
*.njsproj
|
*.njsproj
|
||||||
*.sln
|
*.sln
|
||||||
*.sw?
|
*.sw?
|
||||||
|
.history
|
@ -113,17 +113,17 @@ This `.path` will activate unit file with the same name
|
|||||||
```
|
```
|
||||||
# /etc/systemd/system/wg-gen-web.service
|
# /etc/systemd/system/wg-gen-web.service
|
||||||
[Unit]
|
[Unit]
|
||||||
Description=Restart WireGuard
|
Description=Reload WireGuard
|
||||||
After=network.target
|
After=network.target
|
||||||
|
|
||||||
[Service]
|
[Service]
|
||||||
Type=oneshot
|
Type=oneshot
|
||||||
ExecStart=/usr/bin/systemctl restart wg-quick@wg0.service
|
ExecStart=/usr/bin/systemctl reload wg-quick@wg0.service
|
||||||
|
|
||||||
[Install]
|
[Install]
|
||||||
WantedBy=multi-user.target
|
WantedBy=multi-user.target
|
||||||
```
|
```
|
||||||
Which will restart WireGuard service
|
Which will reload WireGuard service
|
||||||
|
|
||||||
### Using ```inotifywait```
|
### Using ```inotifywait```
|
||||||
For any other init system, create a daemon running this script
|
For any other init system, create a daemon running this script
|
||||||
|
Loading…
Reference in New Issue
Block a user