|
|
10.5: Allow the system.log file to be rotated daily
I may have got this wrong, and I'm not at my Mac just now, but I'm fairly sure launchd in 10.4 was designed to compensate for Macs not on overnight when the /etc/*.local and cron jobs usually take place on *nix boxes.
10.5: Allow the system.log file to be rotated daily
Well, I appreciate the hint. My system.log hadn't been rotated since Nov 17 and had almost 45,000 lines. My MacBook Pro is usually asleep at midnight. Maybe Apple will fix this eventually.
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:
launchd does not compensate skipped jobs
No, launchd in 10.4 could be designed to compensate for Macs not on overnight when the /etc/*.local and cron jobs usually take place on *nix boxes, but I verified this is not the case.
I use PseudoAnacron (donationware) to automatically perform skipped daily/weekly/monthly cron jobs, and when I read about this 10.4 feature I removed the utility, only to discover that the task are not performed (like happened in Panther) if your Mac is asleep overnight. One month without PseudoAnacron resulted in one month of skipped daily, weekly and monthly cron jobs (and no, PseudoAnacron does not modify anything in the system that could prevent 10.4 to do the jobs). This still happens with 10.4.11. |
SearchFrom our Sponsor...Latest Mountain Lion HintsWhat's New:HintsNo new hintsComments last 2 daysNo new commentsLinks last 2 weeksNo recent new linksWhat's New in the Forums?
Hints by TopicNews from Macworld
From Our Sponsors |
|
Copyright © 2014 IDG Consumer & SMB (Privacy Policy) Contact Us All trademarks and copyrights on this page are owned by their respective owners. |
Visit other IDG sites: |
|
|
|
Created this page in 0.09 seconds |
|