diff --git a/entrypoint.sh b/entrypoint.sh index d75ce9e..ac9457b 100755 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -14,5 +14,7 @@ FORWARDING_PORTS=${PORTS:-'0:65535'} iptables -t nat -I PREROUTING -p tcp --match multiport --dports "$FORWARDING_PORTS" -j DNAT --to-destination $DOCKER_HOST iptables -t nat -I POSTROUTING -j MASQUERADE +trap "exit 0;" TERM INT + # Ah, ha, ha, ha, stayin' alive... -trap "exit 0;" TERM INT; while true; do sleep 1d; done & wait +mkfifo void; tail -f void & wait