mirror of
https://github.com/Kiritow/image-station.git
synced 2024-03-22 13:30:54 +08:00
18 lines
476 B
Desktop File
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
|