Issue :

You must have seen on many servers that apache gets restarted every 10
minutes. This is because cpanellogd is supposed to send a SIGUSR1
(graceful restart) to apache every 10 minutes to rotate logs (if enabled) and
handle stats.

Fix :

This can be modified by editing the file /usr/local/cpanel/cpanellogd to do
this only once per day so that you still get log processing and bandwidth
limiting.

Replace this line
sleep(300);
with
sleep(43200);

43200 seconds (12 hours) instead of 300 seconds (5 minutes).
Since the script only processes logs every other loop, this will mean log
processing only happens once every 24 hours.


Shares
Contact Us On WhatsApp