Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
cron questions
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
gregcoit
Tux's lil' helper
Tux's lil' helper


Joined: 12 Jun 2002
Posts: 101

PostPosted: Mon May 31, 2004 12:48 am    Post subject: cron questions Reply with quote

To start off with, this is not a "vcron/vixie-cron" question like the ones that invaded the forums during the name change (at least, I don't think so).

When I had vcron, it worked great. No problems. Then they changed the name and I went through the same thing everyone else did to get rid of the "dependancy already satisfied by vcron" error.

No problem.

Except....

Cron no longer runs anything. It itself is running (a ps -ef shows this) and it's printing out stuff to the log files like normal:

Quote:
May 30 17:00:00 [CRON] (root) CMD (rm -f /var/spool/cron/lastrun/cron.hourly)_
May 30 17:01:00 [CRON] (root) CMD (test -x /usr/sbin/run-crons && /usr/sbin/run-crons )_


But it's not actually doing anything.

Then I noticed in this thread (https://forums.gentoo.org/viewtopic.php?t=171499) the following lines of instructions:

Quote:
> nano -w /etc/cron.hourly/virus-update.cron
#!/bin/bash
/opt/f-prot/check-updates.pl -cron -quiet
> chmod 755 /etc/cron.hourly/virus-update.cron
> crontab -e
# min hour day month weekday command
0 * * * * /etc/cron.hourly/virus-update.cron


Waitaminute. One needs to place the script in *both* the cron.* dir and in one own's crontab?

I always thought the cron.* dir's were for system cron jobs, but one could always have their own crontab too (but that they would be seperate).

Have I been living a lie all this time? :)

FWIW: I re-emerged vixie-cron and made sure all signs of vcron are gone. I'm open to any/all suggestions (unless it involves using windows). :)
_________________
"Life would be so much easier if we could see the source code"
Back to top
View user's profile Send private message
ecatmur
Advocate
Advocate


Joined: 20 Oct 2003
Posts: 3595
Location: Edinburgh

PostPosted: Mon May 31, 2004 2:20 am    Post subject: Reply with quote

This should be in your system crontab (/etc/crontab):
Code:
# for vixie cron
# remember to give cron a sighup when updating this file
#
# $Header: /home/cvsroot/gentoo-x86/sys-apps/vixie-cron/files/crontab-3.0.1-r4,v 1.3 2003/12/14 17:19:25 azarah Exp $
#
#
 
# Global variables
SHELL=/bin/bash
PATH=/sbin:/bin:/usr/sbin:/usr/bin
MAILTO=root
HOME=/
 
# check scripts in cron.hourly, cron.daily, cron.weekly and cron.monthly
0  *  * * *     root    rm -f /var/spool/cron/lastrun/cron.hourly
1  3  * * *     root    rm -f /var/spool/cron/lastrun/cron.daily
15 4  * * 6     root    rm -f /var/spool/cron/lastrun/cron.weekly
30 5  1 * *     root    rm -f /var/spool/cron/lastrun/cron.monthly
*  *  * * *     root    test -x /usr/sbin/run-crons && /usr/sbin/run-crons

_________________
No more cruft
dep: Revdeps that work
Using command-line ACCEPT_KEYWORDS?
Back to top
View user's profile Send private message
gregcoit
Tux's lil' helper
Tux's lil' helper


Joined: 12 Jun 2002
Posts: 101

PostPosted: Mon May 31, 2004 2:31 am    Post subject: yep.... Reply with quote

Sorry, should have mentioned that I do have that....

Any other ideas?

Greg
_________________
"Life would be so much easier if we could see the source code"
Back to top
View user's profile Send private message
ecatmur
Advocate
Advocate


Joined: 20 Oct 2003
Posts: 3595
Location: Edinburgh

PostPosted: Mon May 31, 2004 2:33 am    Post subject: Reply with quote

Does running /usr/sbin/run-crons (as root) work?
_________________
No more cruft
dep: Revdeps that work
Using command-line ACCEPT_KEYWORDS?
Back to top
View user's profile Send private message
gregcoit
Tux's lil' helper
Tux's lil' helper


Joined: 12 Jun 2002
Posts: 101

PostPosted: Mon May 31, 2004 2:36 am    Post subject: nope... Reply with quote

it does not - nor does it generate any errors.... :(
_________________
"Life would be so much easier if we could see the source code"
Back to top
View user's profile Send private message
ecatmur
Advocate
Advocate


Joined: 20 Oct 2003
Posts: 3595
Location: Edinburgh

PostPosted: Mon May 31, 2004 4:52 am    Post subject: Reply with quote

run-crons belongs to sys-apps/cronbase, try remerging that.
_________________
No more cruft
dep: Revdeps that work
Using command-line ACCEPT_KEYWORDS?
Back to top
View user's profile Send private message
gregcoit
Tux's lil' helper
Tux's lil' helper


Joined: 12 Jun 2002
Posts: 101

PostPosted: Mon May 31, 2004 5:09 am    Post subject: Reply with quote

afraid I did that too.

What surprised me is that this seems to be unique to me - but it's happening on both my boxes that I use cron.

very strange.

maybe I will unmerge and then re-emerge both cronbase and vixie-cron.
_________________
"Life would be so much easier if we could see the source code"
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