Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > Mac OS X > Getting anacron to Work in Tiger: It Can Be Done

Getting anacron to Work in Tiger: It Can Be Done
Thread Tools
Mac Elite
Join Date: Jan 2003
Location: 127.0.0.1
Status: Offline
Reply With Quote
May 13, 2005, 02:18 AM
 
I did a google search to see if someone has managed to get anacron working again using launchd, and stumbled upon this:

http://digitalhominid.blogspot.com/

If you used fink to install anacron, just follow his instructions.

However, if you downloaded anacron from Alastair's Place (the dmg file), you'll need to change a few things (highly recommend using TextWrangler):

ProgramArguments: The path to anacron is /usr/local/sbin/anacron
WatchPaths: /etc/anacrontab

Save your changes then launch the plist as per his instructions. Or reboot. You should see that anacron started up in your Console under /var/log/system.log.

A quick check of my system.log appeared that the daily script did in fact work under anacron. It rotated the system.log files as it should have.
     
Mac Elite
Join Date: Jan 2003
Location: 127.0.0.1
Status: Offline
Reply With Quote
May 13, 2005, 02:41 AM
 
Here's a question: Although Alastair's dmg places an item in /Library/StartupItems and is technically not correct for 10.4, does it seem to still work properly? I noticed in my console logs that anacron was still running every 15 minutes and performing the maintenance scripts.

Perhaps those with trouble were using the fink install and setting their jobs through /etc/crontab?
(Last edited by alphasubzero949; May 13, 2005 at 02:51 AM. )
     
Clinically Insane
Join Date: Mar 2001
Location: yes
Status: Offline
Reply With Quote
May 13, 2005, 11:11 AM
 
Originally Posted by alphasubzero949
Here's a question: Although Alastair's dmg places an item in /Library/StartupItems and is technically not correct for 10.4, does it seem to still work properly? I noticed in my console logs that anacron was still running every 15 minutes and performing the maintenance scripts.

Perhaps those with trouble were using the fink install and setting their jobs through /etc/crontab?
I tried setting a sample tab in /etc/crontab (one that would create a folder on my Desktop) and it worked fine... in the case of DejaVu (software which I was using which relied on Anacron). I'm not setting the DV scripts in the periodic folder. Maybe DV was moved to launchd, and Anacron is now basically invoking nothing?
     
Clinically Insane
Join Date: Mar 2001
Location: yes
Status: Offline
Reply With Quote
May 13, 2005, 02:22 PM
 
Originally Posted by besson3c
I tried setting a sample tab in /etc/crontab (one that would create a folder on my Desktop) and it worked fine... in the case of DejaVu (software which I was using which relied on Anacron). I'm not setting the DV scripts in the periodic folder. Maybe DV was moved to launchd, and Anacron is now basically invoking nothing?
Disregard this...

It appears as I have figured out the problem. The problem with the DejaVu scripts not being invoked was a separate, unrelated issue.

However, I did discover the problem with Anacron in Tiger (I think)...

Anacron timestamps are written to /var/spool/anacron. Anacron bases its execution of scripts based on these timestamps. Launchd insists on setting the permissions to this directory so that only root can read these timestamps. Even though the cron process is owned by root, the crontabs themselves are not owned by root, therefore there are permissions errors being written to the console:

Code:
anacron[8091]: Can't open timestamp file for job cron.daily: Permission denied anacron[8091]: Aborted
A repair of the permissions doesn't solve this problem.

The basic summary of this is that Anacron needs to be evoked by launchd. If you are using the Alastair's Place disk image or installing Anacron from Fink or DarwinPorts, you'll have to wait on getting an upgrade to Anacron to support launchd.

See me for instructions in fixing these problems manually though, if you wish.
(Last edited by besson3c; May 13, 2005 at 02:31 PM. )
     
Mac Elite
Join Date: Jan 2003
Location: 127.0.0.1
Status: Offline
Reply With Quote
May 16, 2005, 06:14 PM
 
A disk image for Tiger has been put out:

http://members.cox.net/18james/anacron-tiger.html
     
   
Thread Tools
Forum Links
Forum 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 On
Top
Privacy Policy
All times are GMT -5. The time now is 12:37 AM.
All contents of these forums © 1995-2011 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.7 © 2000-2011, Jelsoft Enterprises Ltd., Content Relevant URLs by vBSEO 3.3.2