[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[cobalt-users] Resetting apache on raq4 daily any way to test it?



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