Thank you, Martin! From what I found in the source code afters seeing your response, Monit periodically scans the process list and performs pattern matching to determine whether a certain monitored service is running or not. It also checks whether the PID still exists.
if Monit is restarted it checks the current state of monitored services before it does any action - if the processes are running already, test is successful and no restart action is done (i.e. no second set of services).
> What is the expected behavior of Monit daemon upon restart after a crash or other kind of abnormal termination? Is it capable of harvesting the process list for the processes started by the predecessor and taking ownership of monitoring them? Or does it just try to spawn a set of [duplicate] services?
> Thank you,