synology-wireguard/conf/systemd/pkg-wg-quick@.service
2021-02-06 19:51:59 +01:00

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