monit-general
[Top][All Lists]
Advanced

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

Re: Restart logic separate from start/stop


From: Darhl Thomason
Subject: Re: Restart logic separate from start/stop
Date: Tue, 23 Nov 2010 15:15:58 -0800

Sure how about something like:

check file Monit_config path /etc/monitrc
   if changed sha1 checksum
     then exec "/usr/local/bin/monit reload"

You could put that into your check apache deal and for the exec (on my system - Debian Lenny) put "then exec "/etc/init.d/apache2 reload"

On Tue, Nov 23, 2010 at 2:40 PM, Dave Paper <address@hidden> wrote:
Hi monit gurus,

I'm hoping I've overlooked some part of the monit manual.  I've got start & stop program definitions for all of my jobs, but would really like to be able to define a "restart program = /opt/apache/bin/apachectl graceful" instead of having to do a full stop & start.  As far as I can tell,  "monit stop JOB; monit start JOB"

Is this something monit has the ability to do?

Thanks,

-dave

--
Dave Paper
"Hello, I must be going." --Groucho


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


reply via email to

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