We are using Monit to monitor mailman service, Worker nodes, and Opsworks agent. It works fine till new we deploy new release. On new release monit stops the Mailman Service and Start it. And when I do SSH into server and check monit status it gives error "error connecting to the monit daemon"
How do I check the cause of monit daemon stops?
Check if an old monit.pid file is still available. Remove the old pid file used by Monit and start Monit again.
See $HOME/.monit.pid or /var/run/monit.pid