Closed ollofx closed 3 years ago
https://github.com/spujadas/elk-docker/blob/a130e79f7f4612ffd624bb4aa0a2b4acdd6c50c2/start.sh#L21
before exit after receiving sig_term ensure also the tail -f doesn't stay as zombie
# kill script PGID so all the child other the direct child are killed avoid zombie trap - SIGTERM SIGINT kill -TERM -- -$$ 2>/dev/null exit 0
# kill script PGID so all the child other the direct child are killed avoid zombie
trap - SIGTERM SIGINT
kill -TERM -- -$$ 2>/dev/null
exit 0
Thanks for reporting this and providing a fix — much appreciated!
https://github.com/spujadas/elk-docker/blob/a130e79f7f4612ffd624bb4aa0a2b4acdd6c50c2/start.sh#L21
before exit after receiving sig_term ensure also the tail -f doesn't stay as zombie
# kill script PGID so all the child other the direct child are killed avoid zombie
trap - SIGTERM SIGINT
kill -TERM -- -$$ 2>/dev/null
exit 0