Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Problems with crons
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
maestral79
n00b
n00b


Joined: 30 Sep 2010
Posts: 3

PostPosted: Thu Sep 30, 2010 6:38 am    Post subject: Problems with crons Reply with quote

Hello! On my gentoo box I use dcron a scheduler. I never had problems with that, but suddnely tasks scheduled in /etc/crontab stoped running without any logs in /var/log/dmesg od /var/log/messages or in cron logs. I allready tried to change scheduler and installed vixie-cron, but the result is the same. I can still run tasks manually.
Anyone know anything about that?
Back to top
View user's profile Send private message
Jimini
l33t
l33t


Joined: 31 Oct 2006
Posts: 601
Location: Germany

PostPosted: Thu Sep 30, 2010 7:31 am    Post subject: Reply with quote

Hi maestral79,
please post the relevant lines from your crontab(s) or better: your whole crontab.

I assume you have already checked, if the daemon is running and / or restarted it?

Best regards,
Jimini
_________________
"The most merciful thing in the world, I think, is the inability of the human mind to correlate all its contents." (H.P. Lovecraft: The Call of Cthulhu)
Back to top
View user's profile Send private message
maestral79
n00b
n00b


Joined: 30 Sep 2010
Posts: 3

PostPosted: Thu Sep 30, 2010 8:00 am    Post subject: Reply with quote

Jimini wrote:
Hi maestral79,
please post the relevant lines from your config or better: your whole crontab.

I assume you have already checked, if the daemon is running and / or restarted it?

Best regards,
Jimini


my crontab looks like:

# for vixie cron

#
# $Header: /var/cvsroot/gentoo-x86/sys-process/vixie-cron/files/crontab-3.0.1-r4,v 1.1 2005/03/04 23:59:48 ciaranm Exp $

#
#

# Global variables

SHELL=/bin/bash

PATH=/sbin:/bin:/usr/sbin:/usr/bin

MAILTO=address@domain.com

HOME=/



# check scripts in cron.hourly, cron.daily, cron.weekly and cron.monthly

#m u d m dt

00 0 * * * root exec /util/procedure/file0
00 1 * * * root exec /util/procedure/file1
00 20 * * * root exec /util/procedure/file2
51 11 * * * root exec /util/procedure/file3
00 22 * * * root exec /util/procedure/file4
#55 17 * * * root exec /util/procedure/file5
00 2 * * * root exec /util/procedure/file6

file0, file1,.. are batch scripts I use for backup. Scripts still work if I run them manually.
Let me say that everything worked well for two years and suddnely stoped working without me touhing anything.

Thank you.

Marko
Back to top
View user's profile Send private message
Jimini
l33t
l33t


Joined: 31 Oct 2006
Posts: 601
Location: Germany

PostPosted: Thu Sep 30, 2010 8:11 am    Post subject: Reply with quote

I use vixie-cron on several machines and as far as I know, you don't need "exec" in your crontab. So you could delete "exec" and try lines like
Code:
00 0 * * * root /util/procedure/file0
00 1 * * * root /util/procedure/file1
00 20 * * * root /util/procedure/file2
51 11 * * * root /util/procedure/file3
00 22 * * * root /util/procedure/file4
#55 17 * * * root /util/procedure/file5
00 2 * * * root /util/procedure/file6

Could be worth a try.

Best regards,
Jimini
_________________
"The most merciful thing in the world, I think, is the inability of the human mind to correlate all its contents." (H.P. Lovecraft: The Call of Cthulhu)
Back to top
View user's profile Send private message
maestral79
n00b
n00b


Joined: 30 Sep 2010
Posts: 3

PostPosted: Thu Sep 30, 2010 8:51 am    Post subject: Reply with quote

Jimini wrote:
I use vixie-cron on several machines and as far as I know, you don't need "exec" in your crontab. So you could delete "exec" and try lines like
Code:
00 0 * * * root /util/procedure/file0
00 1 * * * root /util/procedure/file1
00 20 * * * root /util/procedure/file2
51 11 * * * root /util/procedure/file3
00 22 * * * root /util/procedure/file4
#55 17 * * * root /util/procedure/file5
00 2 * * * root /util/procedure/file6

Could be worth a try.

Best regards,
Jimini


I'll try but as I said, everything worked well till now even with those exec in config.

Thank you
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum