using systemctl manage wg-ui !
JohyC opened this issue · comments
I want to use systemctl to manage wg-ui, but I cannot close wg-ui correctly when I use the following configuration.
I need some help!
[Unit]
Description=https://github.com/ngoduykhanh/wireguard-ui
After=network.target
[Service]
Type=simple
WorkingDirectory=/usr/local/bin/wg
ExecStart=/usr/local/bin/wg/wg-ui --log-level=debug --listen-address=":51821" --nat --client-ip-range="172.16.0.0/24" --nat-device="eth0" --data-dir="/etc/wireguard" --wg-keepalive="25"
Restart=on-abnormal
RestartSec=5s
[Install]
WantedBy=multi-user.target