Hello,

you can use "mode manual" statements - Monit will not monitor the service 
unless you'll call "monit start xyz" or "monit monitor xyz". Note that the 
monitoring state is persistent - recorded in the statefile and Monit will 
resume the monitoring state on next start. If you want to keep the service 
unmonitored on next boot, you'll either have to call "monit stop xyz" (or 
"unmonitor") before the machine stops or you can for example place the 
statefile to memory based filesystem (tmpfs), which will cause Monit "amnesia" 
on reboot as the statefile will be lost (you can set the statefile path using 
"set statefile" statement).

Regards,
Martin



On 12 Feb 2014, at 19:14, mike <[email protected]> wrote:

> Is it possible to use monit to monitor a program, and start and stop it but 
> not have monit start the program if its not running?
> 
> I would basically like to have 10 services, but only use 1 at a time, and 
> would like to be able to start and stop them as needed, but I dont want monit 
> to start them all when the system boots.  Is there a way to do this? I 
> skimmed the manual and didnt see anything other than possibly passive mode 
> but I am not sure if this is what I need.  
> 
> Thanks
> --
> To unsubscribe:
> https://lists.nongnu.org/mailman/listinfo/monit-general


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

Reply via email to