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

Re: [ossig] Apache Restart - was 2 Malaysian organisations among 50 best uptimes



Wrong word again... here to rephrase.

The Apache is restarted in order to get the log rotated. Check /etc/logrotate.d/apache and notice that:
postrotate
/bin/kill -HUP `cat /var/run/httpd.pid 2>/dev/null` 2> /dev/null || true
endscript

Next, check /var/log/httpd/error.log. You should see apache restarted around 4 AM.

You can change the "kill -HUP" to apachectl graceful. But I tested... it is not that reliable when I have many modules run together with apache, especially Chilisoft ASP module.

I end up modifying CustomLog in httpd.conf and use "rotatelogs". It is documented inside this package released under GPL (also do automatic web statistic generation using webalizer),

http://www.net.my/pub/contribs/wwwstats-2.0.2.tar.gz

Thanks.


On Monday, July 21, 2003, at 01:11 PM, Yusmar Yahaya wrote:

On Mon, 21 Jul 2003, Yeak Nai Siew wrote:

reliably tell you exactly when is a system rebooted. FYI, I notice that
the default installation of Apache Web Server for Red Hat Linux is
rebooted EVERY DAY just to do log rotation.

I'm not familiar with the above product, but could you confirm - rebooted
the machine or restarted Apache?

it seems kinda strange to me that a server needs to be rebooted for
rotating logs.

--
----------------------------------------------------
Yusmar Yahaya : (nospam)yus@leafbug.org
geeklab mirror project : http://mirror.leafbug.org
leafbug blogsite : http://leafbug.org/~yus
------------------www.leafbug.org-------------------


------------------------------------------------------------
To unsubscribe: send mail to ossig-request@mncc.com.my
with "unsubscribe ossig" in the body of the message


--
Yeak Nai Siew                  << Mac OS Forever >> << Linux Forever>>
      >>> http://www.redhat.com/rhce/rhce806200928901893.html <<<


------------------------------------------------------------
To unsubscribe: send mail to ossig-request@mncc.com.my
with "unsubscribe ossig" in the body of the message