bitnami / gonit

Drop-in replacement for monit written in Go, with Apache 2.0 license
https://bitnami.com
Apache License 2.0
79 stars 13 forks source link

Gonit should set a different PPID for processes started by it #19

Closed marcosbc closed 4 years ago

marcosbc commented 4 years ago

We are finding issues with Apache and the way it is stopped. It looks like Apache is sending a kill signal to all parent processes, including Gonit, which is then shutdown with all that it implies:

This PR fixes that issue by making the PPID of new processes launched by Gonit different than that of the Gonit process itself.