|
|
|
10.5: Allow the system.log file to be rotated daily
launchd is smart enough to run the daily, weekly and monthly scripts even if it was asleep at the normal time (ie middle of the night). However, the rotation of system logs (which used to be in the daily script) are now handled by newsyslog - and the default setup for this deamon is to only rotate the system.log at midnight (with a 30min leeway either side).
if your machine sleeps before 11.30pm and wakes after 12.30am, the log will NEVER be rotated. My suggestion was to change the newsyslog configuration file to either rotate the log once it reaches a certain size (as robg has done) or to instruct it to rotate every 24 hours (as i have done). Note - if you want to see what newsyslog is thinking, running the following command will give you a reason for rotation or skipping of each log:
|
SearchFrom our Sponsor...Latest Lion HintsWhat's New:HintsNo new hintsComments last 2 daysLinks last 2 weeksNo recent new linksWhat's New in the Forums?
Hints by TopicNews from Macworld
From Our Sponsors |
|
Copyright © 2013 IDG Consumer & SMB (Privacy Policy) Contact Us All trademarks and copyrights on this page are owned by their respective owners. |
Visit other IDG sites: |
|
|
|
Powered by Geeklog Created this page in 0.33 seconds |
|