You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In daemon mode, when a worker process exits (for example, in a phased-restart) it will delete the main process pidfile.
This is because forked workers inherit the parent process' at_exit handlers and at_exit is used for deleting the pidfile like so : at_exit { delete_pidfile }
This is undesirable -- monitoring programs like monit think the daemon has shut down because the pidfile is missing.
I'm not sure how this could be handled better. Add a check in delete_pidfile to make sure only the parent process deletes the file? Or use something other than at_exit?
The text was updated successfully, but these errors were encountered:
In daemon mode, when a worker process exits (for example, in a phased-restart) it will delete the main process pidfile.
This is because forked workers inherit the parent process' at_exit handlers and at_exit is used for deleting the pidfile like so : at_exit { delete_pidfile }
This is undesirable -- monitoring programs like monit think the daemon has shut down because the pidfile is missing.
I'm not sure how this could be handled better. Add a check in delete_pidfile to make sure only the parent process deletes the file? Or use something other than at_exit?
The text was updated successfully, but these errors were encountered: