[arch-general] System Cron jobs not running

Jason Towell jtowell at sjgov.org
Fri Oct 21 13:30:45 EDT 2011

Hi Alex, 

I think in a default configuration crond handles hourly and runs anacron to handle the daily, weekly, etc. I was having trouble running a daily until I realized my cron.daily shell script environment path did not include /usr/local/bin. Placing the full path to my perl script fixed the issue. 

----- Original Message ----- 
From: "Alex Ferrando" <alferpal at gmail.com> 
To: "General Discussion about Arch Linux" <arch-general at archlinux.org> 
Sent: Friday, October 21, 2011 9:05:56 AM 
Subject: Re: [arch-general] System Cron jobs not running 

Maybe I'm getting it wrong, but is dcron the one that runs the 
cron.hourly/daily and so on folders as the crontab in the wiki with 
reference to that default crontab for dcron, not cronie 

On Fri 21 Oct 2011 05:55:33 PM CEST, R7h0re4 wrote: 
> Karol Blazewicz<karol.blazewicz at gmail.com> writes: 
>> On Fri, Oct 21, 2011 at 3:54 AM, R7h0re4<r7h0re4 at att.net> wrote: 
>>> I made a custom script that I want to put into the weekly system cron 
>>> job and according to my logs the script is not running weekly like it 
>>> should. 
>>> -rwxr--r-- 1 root root 87 Aug 4 13:39 cool_script.sh 
>>> According to my information the permission are correct as only root 
>>> should be able to run system cron jobs. 
>>> This is the only thing I have seen in my logs. 
>>> Oct 20 03:01:02 localhost anacron[14161]: Anacron started on 2011-10-20 
>>> Oct 20 03:01:02 localhost anacron[14161]: Job `cron.weekly' locked by another an 
>>> acron - skipping 
>>> Oct 20 03:01:02 localhost anacron[14161]: Will run job `cron.daily' in 12 min. 
>>> Oct 20 03:01:02 localhost anacron[14161]: Jobs will be executed sequentially 
>>> Oct 20 03:02:01 localhost anacron[14151]: Job `cron.weekly' started 
>>> Oct 20 03:02:02 localhost anacron[14151]: Job `cron.weekly' terminated 
>>> Oct 20 03:02:02 localhost anacron[14151]: Normal exit (1 job run) 
>>> Oct 20 03:13:02 localhost anacron[14161]: Job `cron.daily' started 
>>> Oct 20 03:13:55 localhost anacron[14161]: Job `cron.daily' terminated 
>>> Oct 20 03:13:55 localhost anacron[14161]: Normal exit (1 job run) 
>>> I do not have Anacron installed, and my script does not run weekly like 
>>> it is supposed too, I would like fix this problem. 
>>> Any suggestions are welcome! 
>>> R7h0re4 
>> Are you using cronie, dcron or some other cron? cronie provides anacron. 
> I do have Cronie installed but I am still wondering why the script won't 
> run if put in the weekly cron folder. My understanding is the 
> documentation is a little week concerning this topic on the Wiki. Do I 
> need to fill a bug report, or is something out of place. 
> R7h0re4 

CONFIDENTIALITY NOTICE: This e-mail and any attachments are for the sole use of the intended recipient(s) and contain information that may be confidential and/or legally privileged. If you have received this e-mail in error, please notify the sender by reply e-mail and delete the message. Any disclosure, copying, distribution or use of this communication by someone other than the intended recipient is prohibited. Please consider the environment before printing this e-mail.

More information about the arch-general mailing list