Code: Select all
/usr/sbin/logrotate -v -f /etc/logrotate.conf
Jim!
Code: Select all
/usr/sbin/logrotate -v -f /etc/logrotate.conf
Thanks for that. I noticed the same problem.I noticed that I had some huge log files which hadn't been rotated in a long time. I ranbut the process ground to a halt and appears to be caused by the pre script in the /etc/logrotate.d/syslog file. By commenting out the two lines (pre and post) referencing greyhole logrotate now runs correctly. As I don't use greyhole at the moment, it shouldn't cause any issues for me.Code: Select all
/usr/sbin/logrotate -v -f /etc/logrotate.conf
Jim!
Code: Select all
/var/log/messages /var/log/secure /var/log/maillog /var/log/spooler /var/log/boot.log /var/log/cron {
sharedscripts
#prerotate
# /usr/bin/greyhole --prerotate
#endscript
postrotate
#/usr/bin/greyhole --postrotate > /dev/null || true
/bin/kill -HUP `cat /var/run/syslogd.pid 2> /dev/null` 2> /dev/null || true
endscript
}
~
Users browsing this forum: No registered users and 49 guests