[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [cobalt-users] Apache problem on Raq 550
- Subject: Re: [cobalt-users] Apache problem on Raq 550
- From: Gerald Waugh <gwaugh@xxxxxxxxxxxxxxxxxxxxxxx>
- Date: Thu Nov 7 04:59:03 2002
- List-id: Mailing list for users to share thoughts on Sun Cobalt products. <cobalt-users.list.cobalt.com>
On Thu, 7 Nov 2002, Harvey Raybould wrote:
>
> 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.
Are you sure it is not a problem with the router?
Maybe dropping the connection due to no traffic.
Try pinging your router every 5 minutes.
crontab -e
00,05,10,15,20,25,30,45,50,55 * * * * /bin/ping -c 1 1.2.3.4 > /dev/null
Where 1.2.3.4 is the address of the router
This will send one ICMP ECHO_REQUEST every 5 minutes.
If this works, talk to whoever is managing the router!
Gerald
--
http://frontstreetnetworks.com | http://raqware.com
Front Street Networks LLC | Phone: +1 203-785-0699
229 Front Street, Ste. C, New Haven, CT. 06513-3203