spujadas / elk-docker

Elasticsearch, Logstash, Kibana (ELK) Docker image
Other
2.16k stars 908 forks source link

ensure tail -f OUTPUT_LOGFILES is killed after sigterm received by start.sh #345

Closed ollofx closed 3 years ago

ollofx commented 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

spujadas commented 3 years ago

Thanks for reporting this and providing a fix — much appreciated!