Skip to content

Commit

Permalink
refactor: improove keep alive
Browse files Browse the repository at this point in the history
  • Loading branch information
qoomon committed Dec 30, 2018
1 parent f0b6d81 commit 03d7f58
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,7 @@ iptables -t nat -I POSTROUTING -j MASQUERADE
trap "exit 0;" TERM INT

# Ah, ha, ha, ha, stayin' alive...
mkfifo void; tail -f void & wait
while true; do :; done &
kill -STOP $!
wait $!

0 comments on commit 03d7f58

Please sign in to comment.