Ubuntu – how to start monit daemon with all processes unmonitored

monitUbuntu

it seems that by default starting monit the first time when there is no state file(my state file gets blown away on reboot) will start all processes in monitored mode. I want to start the daemon in unmonitored mode, then start up each processes individually using "monit start" commands.

i can't seem to find any documentation in monit on how to do this.

Best Answer

On Ubuntu there is a script that gets run as soon as monit starts if it exists.

/etc/monit/monit_delay

You can simply add a monit unmonitor all to this script. And all monitoring will get disabled basically as soon as the service starts.