streamline wireguard service

pull/194/head
aptalca 2 years ago
parent db8e6086f4
commit a586a44219

@ -0,0 +1 @@
/etc/s6-overlay/s6-rc.d/svc-wireguard/finish

@ -0,0 +1,3 @@
#!/usr/bin/with-contenv bash
wg-quick down wg0

@ -1,14 +1,3 @@
#!/usr/bin/with-contenv bash
_term() {
echo "Caught SIGTERM signal!"
wg-quick down wg0
}
trap _term SIGTERM
wg-quick up wg0
sleep infinity &
wait

@ -0,0 +1 @@
/etc/s6-overlay/s6-rc.d/svc-wireguard/run
Loading…
Cancel
Save