[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
monit control.c event.c
From: |
Jan-Henrik Haukeland |
Subject: |
monit control.c event.c |
Date: |
Tue, 05 Aug 2003 20:53:18 -0400 |
CVSROOT: /cvsroot/monit
Module name: monit
Branch:
Changes by: Jan-Henrik Haukeland <address@hidden> 03/08/05 20:53:18
Modified files:
. : control.c event.c
Log message:
Refactoring: Changed event and control.c to allow a file/device/dir
service to "throw" a stop/restart event and make depending services
stop or restart even if the service does not have a start/stop program
associated with it (which it probably shouldnt have either). The patch
makes this statement work:
check process foo with pidfile /var/run/foo.pid
start program = "/etc/init.d/foo start"
stop program = "/etc/init.d/foo stop"
depends foo_bin
check file foo_bin with path /usr/bin/foo_bin
if timestamp /usr/bin/foo_bin was changed then stop
If /usr/bin/foo_bin was changed the process foo is stopped because of
the depends hookup.
CVSWeb URLs:
http://savannah.gnu.org/cgi-bin/viewcvs/monit/monit/control.c.diff?tr1=1.57&tr2=1.58&r1=text&r2=text
http://savannah.gnu.org/cgi-bin/viewcvs/monit/monit/event.c.diff?tr1=1.15&tr2=1.16&r1=text&r2=text
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- monit control.c event.c,
Jan-Henrik Haukeland <=