[Top][All Lists]

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

Re: Feature request for config file checking?

From: Mark Ferlatte
Subject: Re: Feature request for config file checking?
Date: Tue, 10 Jun 2003 23:11:18 -0700
User-agent: Mutt/1.4.1i

Rick Robino said on Tue, Jun 10, 2003 at 09:16:11PM -0700:
> >if timestamp "/local/apache/conf/httpd.conf" was changed then restart
> >
> >something like this statement may also be used (suggestions for how
> >the statement may actually look are welcome):
> >
> >if timestamp "/local/apache/conf/httpd.conf" was changed
> > then send the process the SIGHUP signal
> Without regard to practicality, my minds eye favors:
>       check timestamp "/local/apache/conf/httpd.conf" if changed then kill 
> <[[-]#][[sig]name]> process
I want to be able to run any script.  Simply a:

check timestamp foo.conf if changed then run "/etc/init.d/foo restart"

solves all of these problems easily.

> "timestamp" remains flexible so that we can AND an alert, execute 
> restart script or whatever besides/rather-than just sending a signal?

Just run a script that sends kill -SIG.  No need for monit to have to add more
special case parsing.


Attachment: pgpqrQQdRXUQe.pgp
Description: PGP signature

reply via email to

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