FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > ArchLinux > ArchLinux General Discussion

 
 
LinkBack Thread Tools
 
Old 10-21-2011, 01:54 AM
R7h0re4
 
Default System Cron jobs not running

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
 
Old 10-21-2011, 02:04 AM
Karol Blazewicz
 
Default System Cron jobs not running

On Fri, Oct 21, 2011 at 3:54 AM, R7h0re4 <r7h0re4@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.
 
Old 10-21-2011, 03:55 PM
R7h0re4
 
Default System Cron jobs not running

Karol Blazewicz <karol.blazewicz@gmail.com> writes:

> On Fri, Oct 21, 2011 at 3:54 AM, R7h0re4 <r7h0re4@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
 
Old 10-21-2011, 04:05 PM
Alex Ferrando
 
Default 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@gmail.com> writes:


On Fri, Oct 21, 2011 at 3:54 AM, R7h0re4<r7h0re4@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
 
Old 10-21-2011, 05:30 PM
Jason Towell
 
Default System Cron jobs not running

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@gmail.com>
To: "General Discussion about Arch Linux" <arch-general@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@gmail.com> writes:
>
>> On Fri, Oct 21, 2011 at 3:54 AM, R7h0re4<r7h0re4@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.
 
Old 10-22-2011, 01:05 AM
R7h0re4
 
Default System Cron jobs not running

Jason Towell <jtowell@sjgov.org> writes:

> 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@gmail.com>
> To: "General Discussion about Arch Linux" <arch-general@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@gmail.com> writes:
>>
>>> On Fri, Oct 21, 2011 at 3:54 AM, R7h0re4<r7h0re4@att.net> wrote:
>>>>

<snip>

>>>>
>>>
>>> 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
>>
>>
>

Just to be safe I added the full path to my script for the commands it
is calling.

I also looked at the wiki again and nothing mentions the use of Cronie,
and system cron jobs. I also checked the file /var/spool and see anacron
which has the sub directories. I would almost say this wiki needs some
updating and would assist once we get it working.

R7h0re4
 
Old 10-24-2011, 09:03 AM
Paul Gideon Dann
 
Default System Cron jobs not running

On Friday 21 Oct 2011 20:05:18 R7h0re4 wrote:
> Just to be safe I added the full path to my script for the commands it
> is calling.
>
> I also looked at the wiki again and nothing mentions the use of Cronie,
> and system cron jobs. I also checked the file /var/spool and see anacron
> which has the sub directories. I would almost say this wiki needs some
> updating and would assist once we get it working.

I suggest removing cronie / anacron and switching to dcron. It used to be the
default, but was switched because it was perceived to be buggy. However, all
known bugs have now been fixed, and it's been running reliably for me for ages.
I trust it more than cronie / anacron.

Paul
 

Thread Tools




All times are GMT. The time now is 09:20 PM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org