February 22, 201214 yr Did 5 implement rotating of logs? I'm having a hard time searching for this. My logs never rotated on 4.7, but did last night for 5b12a. Or is it part of a plugin I have loaded (SimpleFeatures)?
February 22, 201214 yr Yes and No When it gets to a certain size the log will rotate, it did this on 4.7 also if I remember correctly.
February 22, 201214 yr Author Mine didn't - or perhaps the default setting in 4.7 was much larger, as now it appears to be set at 1M. Where can I change this so that the new setting survives reboots?
February 22, 201214 yr Mine didn't - or perhaps the default setting in 4.7 was much larger, as now it appears to be set at 1M. Where can I change this so that the new setting survives reboots? It's always been configured. Back in 4.6 or 4.5 it was fixed. before that it was actually there, but broke. What I do is make a /boot/local/etc folder then rsync it to the /etc upon bootup. look at /etc/logrotate.conf and /etc/logrotate.d/syslog The file you want to adjust is /etc/logrotate.d/syslog You can adjust the size or the age to keep the file before rotating. root@atlas ~ #more /etc/logrotate.d/syslog /var/log/syslog { size 1M sharedscripts postrotate /bin/kill -HUP `cat /var/run/syslogd.pid 2>/dev/null` 2>/dev/null || true endscript }
Archived
This topic is now archived and is closed to further replies.