Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
vixie-cron not running jobs.
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
kiss-o-matic
Guru
Guru


Joined: 19 Jul 2004
Posts: 423
Location: Tokyo

PostPosted: Thu May 10, 2012 12:24 am    Post subject: vixie-cron not running jobs. Reply with quote

Headscratcher. I recently went through the baselayout2 upgrade. Everything seems to work accept vixie-cron. According to /var/log/messages, my jobs are run. However, there is definitely no output from them. I have one simple perl script which should just dump a single line into a file, yet, it doesn't.

I've tried unemerging and re-emerging vixie-cron but to no avail.
Back to top
View user's profile Send private message
eccerr0r
Watchman
Watchman


Joined: 01 Jul 2004
Posts: 9679
Location: almost Mile High in the USA

PostPosted: Thu May 10, 2012 12:29 am    Post subject: Reply with quote

Are you sure it's being run?

You can try using the command "/usr/bin/logger" in a bash script to test if it can run any script, but the script might be having permission problems to write a file. Logger should dump a message into the syslog which should show up in /var/log/messages if you didn't redirect it...
_________________
Intel Core i7 2700K/Radeon R7 250/24GB DDR3/256GB SSD
What am I supposed watching?
Back to top
View user's profile Send private message
kiss-o-matic
Guru
Guru


Joined: 19 Jul 2004
Posts: 423
Location: Tokyo

PostPosted: Thu May 10, 2012 12:39 am    Post subject: Reply with quote

I'm pretty sure they're being run.

Here's a line in /var/log/messages
Code:

May 10 09:30:01 txlnx07 cron[26599]: (paule) CMD (php /datlib/script/php/aucfin.php > /tmp/aucfin.out)


But, /tmp/aucfin.out does not exist. I made sure any job in cron has 755 permissions.


I added /usr/bin/logger in my test script. /var/log/messages again shows me only that it runs
Code:

May 10 09:38:01 txlnx07 cron[29157]: (paule) CMD (/home/paule/test.pl)


But nothing else. If I run test.pl from the shell, it prints out a test line in the syslog. :(
Back to top
View user's profile Send private message
eccerr0r
Watchman
Watchman


Joined: 01 Jul 2004
Posts: 9679
Location: almost Mile High in the USA

PostPosted: Thu May 10, 2012 2:26 pm    Post subject: Reply with quote

So it looks like it didn't actually get run...
hmm... Using crontab to edit the cron file? What is the contents of the crontab file?
Do you have a mail program? Can you check your dead.letter if you don't to see if there's any diagnostic messages there?
_________________
Intel Core i7 2700K/Radeon R7 250/24GB DDR3/256GB SSD
What am I supposed watching?
Back to top
View user's profile Send private message
kiss-o-matic
Guru
Guru


Joined: 19 Jul 2004
Posts: 423
Location: Tokyo

PostPosted: Fri May 11, 2012 1:50 am    Post subject: Reply with quote

dead.letter got out of control size-wise and I removed it not long ago. I have noticed now that it has not be recreated. I've done this many times before on other systems when I needed emergency space.

Contents of the crontab is just a handful of jobs which worked up until this baselayout2 update I did.
Back to top
View user's profile Send private message
kiss-o-matic
Guru
Guru


Joined: 19 Jul 2004
Posts: 423
Location: Tokyo

PostPosted: Thu May 17, 2012 3:30 am    Post subject: Reply with quote

Still no love with this.
Tried about all I can think of.
Back to top
View user's profile Send private message
eccerr0r
Watchman
Watchman


Joined: 01 Jul 2004
Posts: 9679
Location: almost Mile High in the USA

PostPosted: Thu May 17, 2012 2:36 pm    Post subject: Reply with quote

Can you get it to dump diagnostic output again?

Try creating an empty dead.letter file or installing a mail handing system on your system. (I usually do anyway because mail has been an integrated part of Unix since antiquity, it's a very useful thing to pass messages from the system to the administrator. Though having it dump everything into dead.letter also works, just kind of tacky...)
_________________
Intel Core i7 2700K/Radeon R7 250/24GB DDR3/256GB SSD
What am I supposed watching?
Back to top
View user's profile Send private message
olegon
n00b
n00b


Joined: 09 Jul 2012
Posts: 4

PostPosted: Mon Jul 09, 2012 6:11 am    Post subject: Reply with quote

Excuse me for possible offtopic, I can't create new thread.
Nowadays, I need to run job at second Wednesday.
Code:
0    2 8-14 * 3   root    /scripts/gen_arh &>/dev/null 2>&1

this job don't run in dcron at all, but run in vixie-cron at 8 and 9 of July :( (I suppose vixie-cron ignore 3)
Quote:
[I] sys-process/vixie-cron
Installed versions: 4.1-r12(09:20:47 AM 07/07/2012)(pam -debug -selinux)
Where can I find vixie-cron bugzilla?
Back to top
View user's profile Send private message
olegon
n00b
n00b


Joined: 09 Jul 2012
Posts: 4

PostPosted: Mon Jul 09, 2012 7:06 am    Post subject: Reply with quote

Edit to run as
Code:
0    2 8-14 * * root    if [ `date +%u` -eq 3 ]; then /my_scripts/gen_arh &>/dev/null 2>&1 ; fi;
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