[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[cobalt-developers] RE: cobalt-developers digest, Vol 1 #1647 - 10 msgs
- Subject: [cobalt-developers] RE: cobalt-developers digest, Vol 1 #1647 - 10 msgs
- From: Harvey Raybould <harvey@xxxxxxxxxxx>
- Date: Thu Nov 7 02:23:00 2002
- List-id: Discussion Forum for developers on Sun Cobalt Networks products <cobalt-developers.list.cobalt.com>
Hi,
Over the last few months one of my Raq 550s has had a problem
with Apache hanging 3/4/5 times a day. I have had a few people
look at it, tried numerous suggestions from the Sun Forums but
without any luck.
At the moment I have a cron job running every 12 minutes that
restarts Apache. Not ideal. It makes it difficult for us to administer,
it is bad for the clients coz it looks as though their pages are
loading really slowly or not at all. Plus it is putting an unnecessary
load on the server every 12 mins. Sometimes from less than 1 to
about 6
So I was wondering, could someone create me a script that runs
from cron every 10 mins or so, which checks to see if Apache
is OK, if it is, leave it alone, if not restart Apache.
Apache does not stop i.e. when you do the command
/etc/rc.d/init.d/httpd stop it does stop (it doesn't doing nothing
or say it is stopped already) it just seems to stop serving pages.
So doing a check on whether Apache is stopped, won't work, the
script needs to check whether it can serve pages, and if it can't
after a few seconds then Apache needs restarting.
I hope this makes sense.
If anyone can help, please contact me off list with your quotations
for this work.
Thanks for your time.
Harvey