Re: Monit starting processes when they are updating
Lutz Mader <[email protected]> Thu, 31 Jul 2025 21:03:51 +0200
| Newsgroups | gmane.comp.monitoring.monit.general |
|---|---|
| Message-ID | <[email protected]> |
Hello Jamie, as long as the application update is fast, you can delay the application (re)start. check process Postgres with pidfile /var/run/pgsql/data.pid onreboot laststate : if not exist for 5 cycles then start You will get an alert if the application is down and a restart will wait five cycles. On the other hand, you can monitor the application log file and disable/enable the monitoring for the application based on the messages. You will find some suggestion in the wiki also, see https://mmonit.com/wiki/Monit/HowTo Lutz