mirror of
https://github.com/AuxXxilium/synology-wireguard.git
synced 2024-11-23 23:11:06 +07:00
21 lines
748 B
Desktop File
21 lines
748 B
Desktop File
[Unit]
|
|
Description=WireGuard via wg-quick(8) for %I
|
|
After=pkgctl-WireGuard.service
|
|
Wants=pkgctl-WireGuard.service
|
|
Documentation=https://github.com/runfalk/synology-wireguard
|
|
Documentation=https://git.zx2c4.com/wireguard-tools/about/src/man/wg-quick.8
|
|
Documentation=https://git.zx2c4.com/wireguard-tools/about/src/man/wg.8
|
|
Documentation=https://www.wireguard.com/
|
|
Documentation=https://www.wireguard.com/quickstart/
|
|
|
|
[Service]
|
|
Type=oneshot
|
|
RemainAfterExit=yes
|
|
ExecStart=/usr/local/bin/wg-quick up %i
|
|
ExecStop=/usr/local/bin/wg-quick down %i
|
|
ExecReload=/bin/bash -c 'exec /usr/local/bin/wg syncconf %i <(exec /usr/local/bin/wg-quick strip %i)'
|
|
Environment=WG_ENDPOINT_RESOLUTION_RETRIES=infinity
|
|
|
|
[Install]
|
|
WantedBy=syno-low-priority-packages.target
|