2013-05-01 09:52, Frank Murphy skrev:
How to safely clean /var/log/messages for specific testing. or set it to hourly rotate. Couldn't see specific config in /etc/logrotate.d Have tried "logrotate --force /var/log/messages" lots of "error: /var/log/messages:7137 unknown option 'May' -- ignoring line" I done want to nano "wipe the file" if possible
Have you looked in /etc/logrotate.d/syslog? On my F18 it contains: $ more /etc/logrotate.d/syslog /var/log/cron /var/log/maillog /var/log/messages /var/log/secure /var/log/spooler { sharedscripts postrotate /bin/kill -HUP `cat /var/run/syslogd.pid 2> /dev/null` 2> /dev/null || t rue endscript } $ ls -l /var/log/messages* -rw-------. 1 root root 205769 1 maj 11.16 /var/log/messages -rw-------. 1 root root 1359 7 apr 03.48 /var/log/messages-20130407 -rw-------. 1 root root 180624 14 apr 03.37 /var/log/messages-20130414 -rw-------. 1 root root 160610 21 apr 03.21 /var/log/messages-20130421 -rw-------. 1 root root 2790 28 apr 03.50 /var/log/messages-20130428 -- Med vänliga hälsningar/Kærar kveðjur/Regards Jon Ingason Stortorpsvägen 75 142 65 Trångsund Sverige/Svíþjóð/Sweden T: +46(0)8 - 514 911 01 M: +46(0)70 - 514 91 12 E: jon@xxxxxxxxxx W: www.ingason.se B: www.ingason.se/blogg -- users mailing list users@xxxxxxxxxxxxxxxxxxxxxxx To unsubscribe or change subscription options: https://admin.fedoraproject.org/mailman/listinfo/users Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines Have a question? Ask away: http://ask.fedoraproject.org