monit-dev
[Top][All Lists]
Advanced

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

Re: depend take 2


From: Rory Toma
Subject: Re: depend take 2
Date: 19 Dec 2002 14:24:42 -0800

I'm still seeing this after updating.

On Thu, 2002-12-19 at 14:03, Rory Toma wrote:
> This doesn't seem to work. Here is my monitrc:
> 
> set daemon 10
> set logfile /var/tmp/monit.log
> set httpd port 1400
> allow localhost
> allow localhost.localdomain
> 
> check sshd with pidfile /var/run/sshd.pid
> start program = "/etc/rc.d/init.d/sshd start"
> stop  program = "/etc/rc.d/init.d/sshd stop"
> depend xinetd
> 
> check gpm with pidfile /var/run/gpm.pid
> start program = "/etc/rc.d/init.d/gpm start"
> stop  program = "/etc/rc.d/init.d/gpm stop"
> 
> check xinetd with pidfile /var/run/xinetd.pid
> start program = "/etc/rc.d/init.d/xinetd start"
> stop  program = "/etc/rc.d/init.d/xinetd stop"
> depend gpm
> 
> 
> When I run "monit stop sshd" I expect the following:
> 
> stop->gpm->xinetd->sshd
> 
> and then when I run start:
> 
> start->sshd->xinetd->gpm
> 
> Here is the log output:
> 
> [PST Dec 19 14:00:55] stop: (sshd) /etc/rc.d/init.d/sshd
> [PST Dec 19 14:00:56] stop: (xinetd) /etc/rc.d/init.d/xinetd
> [PST Dec 19 14:00:57] stop: (gpm) /etc/rc.d/init.d/gpm
> [PST Dec 19 14:01:00] start: (gpm) /etc/rc.d/init.d/gpm
> [PST Dec 19 14:01:01] start: (xinetd) /etc/rc.d/init.d/xinetd
> [PST Dec 19 14:01:01] start: (sshd) /etc/rc.d/init.d/sshd
> 
> 
> It seems that the order is incorrect. Also, I never ran start in this
> case, and the processes restarted.
> 
> On Thu, 2002-12-19 at 13:42, Jan-Henrik Haukeland wrote:
> > Rory Toma <address@hidden> writes:
> > 
> > > > 
> > > >    3) b does not run
> > > >        When you run 'monit start': b is started, then a is stopped and
> > > >        the started again (restarted).
> > > 
> > > I believe that this should be a is stopped, b is started, a is started.
> > > >    
> > > >    4) c does not run
> > > >        When you run 'monit start': c is started, then b is stopped and
> > > >        the started again (restarted) and finally a is restarted in the
> > > >        same manner.
> > > 
> > > The same here, one level more.
> > 
> > Probably, but I'm not sure if it matters? at least I cannot think of
> > an example where it does. (I'm happy to get one) Anyway since it was
> > easy to change I have checked in a new version as per your request :-)
-- 
Rory Toma               address@hidden
VP of Run Level 5       http://www.trs80.net
Digeo Digital           http://www.digeo.com

Attachment: signature.asc
Description: This is a digitally signed message part


reply via email to

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