You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
docker-wireguard/root/etc/services.d/wireguard/run

15 lines
155 B
Plaintext

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