Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'A simple bash script to run system maintenance tasks' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
A simple bash script to run system maintenance tasks
Authored by: rammjet on Dec 20, '06 10:12:37AM

The system normally performs these maintenance operations at about 3:00 AM if you leave your computer running. Apple used to use crontabs to spawn the maintenance operations, but now uses its own LaunchDaemons server.

If you go to the directory: /System/Library/LaunchDaemons you will find all of the different scheduled events. If you edit the following 3 files (as root - sudo), then you can change the times that the maintenance functions get performed.

In these files, edit the bottom 2 key/integer pairs to change the start time:

com.apple.periodic-daily.plist
com.apple.periodic-monthly.plist
com.apple.periodic-weekly.plist

Repair permissions after the modification.



[ Reply to This | # ]