Created
August 17, 2023 19:48
-
-
Save ngxson/9672d720c86234299623caa703e615d1 to your computer and use it in GitHub Desktop.
Wireguard GUI
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[Unit] | |
Description=Watch /etc/wireguard/wg0.conf for changes | |
[Path] | |
PathModified=/etc/wireguard/wg0.conf | |
[Install] | |
WantedBy=multi-user.target |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[Unit] | |
Description=Restart WireGuard | |
After=network.target | |
[Service] | |
Type=oneshot | |
ExecStart=/usr/bin/systemctl restart wg-quick@wg0.service | |
[Install] | |
RequiredBy=wgui.path |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[Unit] | |
Description=Wireguard GUI Service | |
After=network.target | |
[Service] | |
ExecStart=/bin/wireguard-ui | |
Restart=always | |
RestartSec=10 | |
[Install] | |
WantedBy=multi-user.target |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment