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 15:25:30 -0800

Ah, so you did flip the meaning of depend. It wasn't clear from the
docs.

I'll retry that. However, there is still the case where the programs are
restarting on their own after running "monit stop sshd"

On Thu, 2002-12-19 at 14:39, Jan-Henrik Haukeland wrote:
> Rory Toma <address@hidden> writes:
> 
> > 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. 
> 
> 
> No this is correct. Lets start with the start, ssh depends on xinetd
> to run before it starts and xinetd on gpm to run before it starts so
> the start order is correct, the same with stop. Don't you agree?
-- 
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]