Skip to content

Commit

Permalink
feat: keep alive with tail -f
Browse files Browse the repository at this point in the history
  • Loading branch information
qoomon authored Dec 21, 2018
1 parent 28ce3fb commit f0b6d81
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit f0b6d81

Please sign in to comment.