Closed joe-at-startupmedia closed 11 months ago
My guess is that the deamon process spawned by systemctl start pmon2
monitors all processes in the database and restarts them when they are unhealthy? pm2 automatically starts the god deamon when you run pm2 start [service]
. Besides this, Is there anything else I'm missing?
According to the code. This file explains how pmond works: https://github.com/ntt360/pmon2/blob/483fb1f80656fa6b489d8f7ebd47f16f7b86bb97/app/god/monitor.go
In summary it does the following in an infinite loop that executes every 500 ms.
What is the point of starting this daemon? I am able to add processes without starting it using the following: