Hi Martin,

> there could be problem with two checks, restarting the same process:
> when the "stream_restart" tries to restart the process, the
> "stream_reader" will detect that the process is not running and will
> try to restart it too (since there is no connection between these two
> tests). The restart should be either performed via dependency chain,
> or exec action which will restart the service with process check:

--8<--
check file stream_restart with path
/var/www/example.com/tmp/stream_restart.txt
    if changed timestamp then exec "/usr/bin/monit restart stream_reader"
--8<--

Thanks so much for this. It worked.

That was a really annoying problem so I'm delighted to have it solved.

-- 
Best,
Marc


--
To unsubscribe:
https://lists.nongnu.org/mailman/listinfo/monit-general

Reply via email to