monit-general
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Question about restart/stop


From: V.Krishn
Subject: Re: Question about restart/stop
Date: Sun, 3 Nov 2013 11:55:51 +0530
User-agent: KMail/1.13.7 (Linux/3.9.6-64; KDE/4.8.4; x86_64; ; )

On Oct 15, 2013, at 3:05 PM, "Jorge Bastos" <address@hidden> wrote:

>>> if failed port 143 protocol imap with timeout 20 seconds within 1
>> cycles then stop
>>> 
>>> but monit it self stop's, is this normal?!
>> 
>> The "if failed port 143 protocol imap with timeout 20 seconds within 1
>> cycles then stop" will stop the service and disable its monitoring -
>> Monit itself should continue (the "stop" action is only for the service
>> in which context is defined).
>> 
>> You can enable the monitoring again using either "monit monitor
>> <servicename>" or "monit start <servicename>".
> 
> Monit stop's running that's what I find odd.
> 
> Allow me to ask, can I use restart instead of stop, and since I don't have a
> "start program" defined, it won't do nothing for start, right?

Was wondering why does monit not support ?
eg.
    restart program  = "/etc/init.d/<service> restart"

-- 
Regards.
V.Krishn



reply via email to

[Prev in Thread] Current Thread [Next in Thread]