Click to See Complete Forum and Search --> : Apache restart entry


vrsuresh
07-30-2004, 06:40 AM
Hi,

I have installed apache in a Linux box and it was working fine. Suddenly, the server would not respond and hence I had to restart. I checked the error_80_log file and found no errors.

I want to find any error messages before restarting the server.. how can I find when Apache is restarted from the log file?

Thanks,
Suresh

knocknock
08-02-2004, 03:28 PM
Just parse your apache errorlogfile.
If it was restarted, or just started, it MUST be there.

Tip:
grep "resuming normal operations" /var/log/httpd/error_log
(substitute error_log with your error log name).

Keep in mind that if you have logrotate configured, maybe logroteate rotated your logs before you found the http server down. So in the last rotated error log it will be the restarted message of apache.

Kind Regards

KnocKnocK webmaster