New To Mac-Forums?

Welcome to our community! Join the discussion today by registering your FREE account. If you have any problems with the registration process, please contact us!

Get your questions answered by community gurus Advice and insight from world-class Apple enthusiasts Exclusive access to members-only contests, giveaways and deals

Join today!

 
Start a Discussion
 

Mac-Forums Brief

Subscribe to Mac-Forums Brief to receive special offers from Mac-Forums partners and sponsors

Join the conversation RSS
OS X - Development and Darwin Discussion and questions about development for Mac OS X.

Fixing the Default Housekeeping schedule


Post Reply New Thread Subscribe

 
Thread Tools
gatorparrots
Guest
 
Posts: n/a

OS X has three housekeeping scripts that are run on a daily, weekly and monthly basis if your computer is left on early in the morning (between 3-6 am). These scripts are run by cron in the default /etc/crontab. Some GUI programs like MacJanitor and Cronathon can be used to run these scripts manually at any time. However, this is just a symtomatic cure to a very real problem: Apple engineers made a greviously erroneous assumption about when to schedule the housekeeping scripts, and for not providing a mechanism for rescheduling them or checking to see if they are being run at all. Their defaults are fine for a desktop machine that is left on 24 hours a day and set not to go to sleep (such as a server machine or for users with a desktop machine who have configured their Energy Saver settings in such a fashion).

However, for most laptop users, the default settings are unusable as the housekeeping scripts will never be run!

The settings can be fixed by downloading CronniX and editing the system crontab:
http://www.koch-schmidt.de/cronnix/

or by manually editing the system crontab:
cd /etc
sudo -s
cp crontab crontab.default
pico crontab

It will have three lines:
15 3 * * * root periodic daily
30 4 * * 6 root periodic weekly
30 5 1 * * root periodic monthly


We are interested especially in the second column of numbers, since they represent the hours at which the housekeeping scripts will run.

The asterisks represent that the daily script will run at "3:15 a.m. on every day of the month, on every month, and every day of the week," that is "every day at 3:15 a.m.". The weekly script runs at 4:30 a.m. on every weekday number 6 (Saturday). The monthly script runs at 5:30 a.m. on the first of each month.

I suggest editing it in a similar fashion to this:
15 8 * * * root periodic daily
30 9 * * 5 root periodic weekly
30 10 1 * * root periodic monthly

These settings will make all the scripts run during normal working hours, which is how they should be for most users. Once it is satisfactorily edited, type Ctrl + O to write out the file in pico, enter to accept the name, and Ctrl + X to exit.
exit
to exit the root shell.
QUOTE Thanks

Post Reply New Thread Subscribe


« List your installed applications | Single User Mode Start Up »
Thread Tools

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off
Forum Jump

Similar Threads
Thread
Thread Starter
Forum
Replies
Last Post
Firefox default? adiliegro Switcher Hangout 3 09-26-2004 12:30 AM
Restore "Preview" as default PDF viewer jookkk OS X - Operating System 3 02-09-2004 03:39 PM

All times are GMT -4. The time now is 06:11 AM.

Powered by vBulletin
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
X

Welcome to Mac-Forums.com

Create your username to jump into the discussion!

New members like you have made this community the ultimate source for your Mac since 2003!


(4 digit year)

Already a member?