I have a Cobalt Raq4. This is some information about Apache running on it:
Server Version: Apache/1.3.20 Sun Cobalt (Unix) mod_ssl/2.8.4 OpenSSL/0.9.6b PHP/4.1.2 mod_auth_pam_external/0.1 FrontPage/18.104.22.168 mod_perl/1.25
Server Built: Apr 4 2003 16:03:06
For the past month, I have had a problem where for no good or apparent reason, the Apache shuts itself down. It is really annoying. The rest of the server continues fine. I have to access the server by telnet or SSH and from root issue a straightforward /etc/rc.d/init.d/httpd restart command, and it comes back to life.
Normally when you run this command from the command line, it gives a statement saying that it is shutting down Apache, then a few seconds later it gives a statement that it is starting up Apache.
When I try it after the Apache has stopped, there is no confirmation that it has stopped Apache. I am guessing that this is because Apache is already stopped.
I already (before all this started) had created a cron job which restarts the Apache every 2 hours anyway. Sometimes this is successful in restarting it before I notice it has stopped, sometimes not, and I get a warning message from the external server monitoring service. Usually (but not always) after a few hours (maybe 6-8 hours) the Apache starts up again, I am guessing because of the cron job.
Sometimes I have noticed that it can occur if I request a page exactly at the moment when the 2-hourly cron Apache restart is due to take place. Maybe I am over-analysing...
<Sheepish grin> This all started when I was messing with the scripts in /etc/rc.d/init.d ... I am not sure whether I touched the httpd script. You see I had just discovered the SSH script in there and was tinkering with it, and then I thought I'd have a look at the others too...
If any of this makes any sense to anyone, I would be grateful for any ideas :-)