[Top][All Lists]

[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:17:48 -0800

OK, I'll be more explicit (mostly for myself).

Instead of:
If whatever then restart

If whatever then exec "/opt/apache/bin/apachectl graceful"


On Tue, Nov 23, 2010 at 3:15 PM, Darhl Thomason <address@hidden> wrote:
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?



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

To unsubscribe:

reply via email to

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