tsaikd / gogstash

Logstash like, written in golang
MIT License
644 stars 106 forks source link

Changed os exit signals #181

Closed helgeolav closed 2 years ago

helgeolav commented 2 years ago

I have been looking into signal handling in worker.go and config.go. With workers we exit on SIGINT and SIGTERM whereas without workers we exit on SIGINT and SIGKILL.

This change adds SIGTERM into config.go and I also removed SIGKILL as we don't forcefully can't close gogstash if any input/filter/output hangs during cleanup.