mirror of
https://github.com/linuxserver/docker-wireguard
synced 2024-11-02 09:40:26 +00:00
streamline wireguard service
This commit is contained in:
parent
db8e6086f4
commit
a586a44219
1
root/etc/s6-overlay/s6-rc.d/svc-wireguard/down
Normal file
1
root/etc/s6-overlay/s6-rc.d/svc-wireguard/down
Normal file
@ -0,0 +1 @@
|
|||||||
|
/etc/s6-overlay/s6-rc.d/svc-wireguard/finish
|
3
root/etc/s6-overlay/s6-rc.d/svc-wireguard/finish
Executable file
3
root/etc/s6-overlay/s6-rc.d/svc-wireguard/finish
Executable file
@ -0,0 +1,3 @@
|
|||||||
|
#!/usr/bin/with-contenv bash
|
||||||
|
|
||||||
|
wg-quick down wg0
|
@ -1,14 +1,3 @@
|
|||||||
#!/usr/bin/with-contenv bash
|
#!/usr/bin/with-contenv bash
|
||||||
|
|
||||||
_term() {
|
|
||||||
echo "Caught SIGTERM signal!"
|
|
||||||
wg-quick down wg0
|
|
||||||
}
|
|
||||||
|
|
||||||
trap _term SIGTERM
|
|
||||||
|
|
||||||
wg-quick up wg0
|
wg-quick up wg0
|
||||||
|
|
||||||
sleep infinity &
|
|
||||||
|
|
||||||
wait
|
|
||||||
|
@ -1 +1 @@
|
|||||||
longrun
|
oneshot
|
1
root/etc/s6-overlay/s6-rc.d/svc-wireguard/up
Normal file
1
root/etc/s6-overlay/s6-rc.d/svc-wireguard/up
Normal file
@ -0,0 +1 @@
|
|||||||
|
/etc/s6-overlay/s6-rc.d/svc-wireguard/run
|
Loading…
Reference in New Issue
Block a user