[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: depend take 2
From: |
Jan-Henrik Haukeland |
Subject: |
Re: depend take 2 |
Date: |
19 Dec 2002 23:39:44 +0100 |
User-agent: |
Gnus/5.0808 (Gnus v5.8.8) XEmacs/21.4 (Civil Service) |
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?
--
Jan-Henrik Haukeland
- Re: depend take 2, (continued)
- Re: depend take 2, rory, 2002/12/18
- Re: depend take 2, Jan-Henrik Haukeland, 2002/12/19
- Re: depend take 2, Rory Toma, 2002/12/19
- Re: depend take 2, Jan-Henrik Haukeland, 2002/12/19
- Re: depend take 2, Rory Toma, 2002/12/19
- Re: depend take 2, Rory Toma, 2002/12/19
- Re: depend take 2, Rory Toma, 2002/12/19
- Re: depend take 2,
Jan-Henrik Haukeland <=
- Re: depend take 2, Rory Toma, 2002/12/19
- Re: depend take 2, Rory Toma, 2002/12/19
- Re: depend take 2, rory, 2002/12/19
- Re: depend take 2, Jan-Henrik Haukeland, 2002/12/20
- Re: depend take 2, Rory Toma, 2002/12/20
- Re: depend take 2, Rory Toma, 2002/12/20
- Re: depend take 2, Jan-Henrik Haukeland, 2002/12/20
- Re: depend take 2, Rory Toma, 2002/12/20
- Re: depend take 2, Rory Toma, 2002/12/20
- Re: depend take 2, Jan-Henrik Haukeland, 2002/12/20