image-station/simple-wireguard/scripts/wg0.service
2021-02-24 04:10:39 +08:00

18 lines
476 B
Desktop File

[Unit]
Description=Simple WireGuard Service
After=network-online.target nss-lookup.target
Wants=network-online.target nss-lookup.target
Documentation=man:wg(8)
Documentation=https://www.wireguard.com/
[Service]
Type=oneshot
RemainAfterExit=yes
ExecStart=/bin/bash /opt/wireguard/wg-start.sh
ExecStop=/bin/bash /opt/wireguard/wg-stop.sh
ExecReload=/bin/bash /opt/wireguard/wg-reload.sh
Environment=WG_ENDPOINT_RESOLUTION_RETRIES=infinity
[Install]
WantedBy=multi-user.target