[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Problems with depend
From: |
Jan-Henrik Haukeland |
Subject: |
Re: Problems with depend |
Date: |
05 Nov 2002 20:49:59 +0100 |
User-agent: |
Gnus/5.0808 (Gnus v5.8.8) XEmacs/21.4 (Civil Service) |
<address@hidden> writes:
> I'll check it out. I assume that running monit stop and monit start
> do the right thing? I may have forgotten to test the "restart" case.
When I use the setup
check apache (..) depend foobar
check foobar (..)
and no process is running I get the following log output. It looks
like the depend process is not started first. I thought that if A
depends on B then the start order is first B then A? It also looks
[CET Nov 5 20:33:11] 'apache' is not running.
[CET Nov 5 20:33:11] stop: (sendmail) /home/hauk/bin/tst
[CET Nov 5 20:33:11] start: (apache) /usr/local/apache/bin/http
[CET Nov 5 20:33:11] start: (sendmail) /home/hauk/bin/tst
[CET Nov 5 20:33:11] Found 0 certificates
[CET Nov 5 20:33:14] 'sendmail' is not running.
[CET Nov 5 20:33:14] start: (sendmail) /home/hauk/bin/tst
If I change the order in the monitrc file to
check foobar (..)
check apache (..) depend foobar
I then get the following listing when no processes are running.
[CET Nov 5 20:37:38] 'sendmail' is not running.
[CET Nov 5 20:37:38] start: (sendmail) /home/hauk/bin/tst
[CET Nov 5 20:37:38] Found 0 certificates
[CET Nov 5 20:37:41] 'apache' is not running.
[CET Nov 5 20:37:41] stop: (sendmail) /home/hauk/bin/tst
[CET Nov 5 20:37:41] start: (apache) /usr/local/apache/bin/http
[CET Nov 5 20:37:41] start: (sendmail) /home/hauk/bin/tst
In other words maybe some analysis should be done first before
atempting to start a process, to avoid the on-off-on start pattern,
and that the start order is according to the dependency and not the
order, entries was written in the monitrc file. It's probably going to
be much harder to implement B-) What do you think?
--
Jan-Henrik Haukeland
- Problems with depend, Jan-Henrik Haukeland, 2002/11/05
- Re: Problems with depend, rory, 2002/11/05
- Re: Problems with depend,
Jan-Henrik Haukeland <=
- Re: Problems with depend, Rory Toma, 2002/11/05
- Re: Problems with depend, Jan-Henrik Haukeland, 2002/11/05
- Re: Problems with depend, Rory Toma, 2002/11/05
- RE: Problems with depend, Jan-Henrik Haukeland, 2002/11/05
- RE: Problems with depend, Rory Toma, 2002/11/06
- Re: Problems with depend, Jan-Henrik Haukeland, 2002/11/07
- Re: Problems with depend, Rory Toma, 2002/11/07
- Re: Problems with depend, Rory Toma, 2002/11/08
Re: Problems with depend, Rory Toma, 2002/11/05