Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'A shell script to check on Apache' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
A shell script to check on Apache
Authored by: Tomnibus on Jan 08, '05 02:39:12AM

I don't know if you will get this comment but I have looked hi and low across the internet on how to get watchdog to check apache.

I put it in my script and I get this:
[code]2005-01-08 02:26:56 EST Started child "/usr/sbin/apachectl" as pid 18941.
2005-01-08 02:26:56 EST Reaped child process 18941 ("/usr/sbin/apachectl"); quit with exit status 0.
2005-01-08 02:26:56 EST Process "/usr/sbin/apachectl" respawning too rapidly![/code]

Why? Well, I looked online for that error and someone who put it into their inittab had the same problem and a response came:
<blockquote>
Apache is not supposed to run from init. It runs as a daemon, ie.
it forks a child and the parent exits; init thinks it keeps dying
so it keeps trying to restart it.
</blockquote>

So, essentially watchdog cannot watch apache.



[ Reply to This | # ]