2026-04-08 20:27:38 +02:00
|
|
|
[Unit]
|
|
|
|
|
Description=Archipelago Standalone WireGuard (wg0)
|
2026-04-11 13:01:10 -04:00
|
|
|
After=network.target
|
2026-04-08 20:27:38 +02:00
|
|
|
ConditionPathExists=/var/lib/archipelago/wireguard/private.key
|
|
|
|
|
|
|
|
|
|
[Service]
|
|
|
|
|
Type=oneshot
|
|
|
|
|
RemainAfterExit=yes
|
|
|
|
|
ExecStart=/usr/local/bin/archipelago-wg setup /var/lib/archipelago/wireguard/private.key
|
|
|
|
|
ExecStop=/bin/bash -c 'ip link del wg0 2>/dev/null || true'
|
|
|
|
|
|
|
|
|
|
[Install]
|
|
|
|
|
WantedBy=multi-user.target
|