[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: [cobalt-users] Resetting apache on raq4 daily any way to test it?
- Subject: RE: [cobalt-users] Resetting apache on raq4 daily any way to test it?
- From: Troy Fridley <TFridley@xxxxxxxxxxxxxx>
- Date: Thu Aug 23 23:37:03 2001
- List-id: Mailing list for users to share thoughts on Cobalt products. <cobalt-users.list.cobalt.com>
I'm not sure I totally understand the circumstances which you need to
restart the web server. But if it is the result of one or more process's
abending, why not just stick a script in cron.hourly to check and see if the
service is running or not?
<CODE>
#!/bin/bash
ISRUNNING='ps -A | grep -c <servicename>'
if [ "$ISRUNNING" = "0" ]; then
/path/to/binary/or/script
else
exit
fi
</CODE>
This would check every hour to see if a specific service is running or not.
This is quick and dirty, just to give you an idea to pursue.
-Troy
-----Original Message-----
From: Zak Thompson [mailto:zt@xxxxxxxxxxxxx]
Sent: Friday, August 24, 2001 9:11 AM
To: cobalt-users@xxxxxxxxxxxxxxx
Subject: RE: [cobalt-users] Resetting apache on raq4 daily any way to
testit?
Michael,
Apache usally isn't thing that takes the server down,... usally its
ChiliSoft that takes it down. ChiliSoft is a BIG RESOURCE EATER and is
known to shutdown.
--
Zak T.
-----Original Message-----
From: cobalt-users-admin@xxxxxxxxxxxxxxx
[mailto:cobalt-users-admin@xxxxxxxxxxxxxxx]On Behalf Of Marco Baurdoux
Sent: Friday, August 24, 2001 6:06 AM
To: cobalt-users@xxxxxxxxxxxxxxx
Subject: Re: [cobalt-users] Resetting apache on raq4 daily any way to
testit?
Hi Michael,
you might want to use snmp and ping the port 80 of your webserver, if it
respond you have a running webserver if it doesn't make it send an alarm to
a beeper of something similar.
le 19.8.2001 19:39, Michael à no.spam.please@xxxxxxxxxxxxxxxxxxxx a écrit :
> Hello folks!
>
> I have to reset my apache server on my raq4 daily because if it runs too
long
> without a reset, for some strange reason older versions of MSIE will not
> display SSL pages. When I reset the httpd server, strangly enough, they
can
> see them. I have been resetting it daily by hand and want to add a script
in
> cron.daily BUT sometimes (rare) the reset does not take and the server
stays
> down! When I do it by hand I can test this with the browser, and simply
> restart it again. With a restart script though, that is not possible
since I
> am not sitting there to see if its up or not.
>
> I made a script in /etc/cron.daily called restarthttpd
>
> #!/bin/sh
> /etc/rc.d/init.d/httpd restart
>
> #EOF
>
>
> Chmod 755 seems to work. OK, now, is there anything I can add to this
script
> that will test to see if it REALLY restarted? And if not, try again?
>
> Thanks guys!
>
> Michael Thiessen
>