Who is Chirpy? ConfigServer Services
cPanel Server Services from Way to The Web Ltd
 
Home Site Blog Services Support Terms & Conditions Privacy Policy Contact Us
cPanel Server Services
cPanel MailScanner Service
Server Recovery Service
Exploit Scan Service
General Server Management
cPanel MailScanner Front-End
Services FAQ
Ordering Information
 
ConfigServer Scripts Forum
ConfigServer Firewall
ConfigServer Explorer
ConfigServer Mail Queues
ConfigServer Mail Manage
 
Why you should use :fail:
Searching for Spammers
Latest Vulns & Viruses
 
Free MailScanner Installer
Free ClamAV install for MS
Upgrading MS and ClamAV
 
Way to the Web Limited
Why are my log files not rotating correctly?
Why is syslog writing to an older log file?
Why is lfd not picking up login failures? (cPanel Server Management)
Due to a bug in logrotate if /tmp is mounted with the noexec option, you need to have logrotate use a different temporary directory. If you don't do this syslog may not restart correctly and will write to the wrong (older) log files.

You can do this by editing /etc/cron.daily/logrotate so that it looks like this:

#!/bin/sh
export TMPDIR=/var/spool/logrotate/tmp

/usr/sbin/logrotate /etc/logrotate.conf
EXITVALUE=$?
if [ $EXITVALUE != 0 ]; then
    /usr/bin/logger -t logrotate "ALERT exited abnormally with [$EXITVALUE]"
fi
exit 0
Then create the directory:
mkdir -p /var/spool/logrotate/tmp

Jump to:
FAQ Home Search FAQs Contact Us
Enter FAQ ID:  
Go to Helpdesk
 

©1998-2009, Way to the Web Limited
ConfigServer, Way to the Web, WebUMake and WebUMake Hosting are trademarks of Way to the Web Limited