Gentoo Archives: gentoo-user

From: Matt Randolph <mattr@×××××.com>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] script in /etc/cron.daily never runs
Date: Thu, 22 Sep 2005 15:03:30
Message-Id: 4332C5B4.2040006@erols.com
In Reply to: Re: [gentoo-user] script in /etc/cron.daily never runs by Renat Golubchyk
1 Renat Golubchyk wrote:
2
3 >On Wed, 21 Sep 2005 16:15:04 -0500 John Jolet <john@×××××.net> wrote:
4 >
5 >
6 >>On Wed, 2005-09-21 at 17:11 -0400, Matt Randolph wrote:
7 >>
8 >>
9 >>>I have a script in /etc/cron.daily that never runs. It works
10 >>>properly when run manually and it's been in there for weeks (and a
11 >>>reboot or two).
12 >>>
13 >>>I'm using vixie-cron.
14 >>>
15 >>>
16 >
17 >Is the executable bit set? Otherwise run "chmod u+x scriptname".
18 >
19 >
20 >
21 >>cron.daily doesn't get run from cron. gets run out of anacron....do
22 >>you have anacron installed?
23 >>
24 >>
25 >
26 >That's wrong. I don't have anacron installed, I have plain vixie-cron,
27 >and cron.{hourly,daily,weekly,monthly} gets run from cron. Here are the
28 >relevant lines from /etc/crontab:
29 >
30 ># check scripts in cron.hourly, cron.daily, cron.weekly and cron.monthly
31 >0 * * * * root rm -f /var/spool/cron/lastrun/cron.hourly
32 >30 6 * * * root rm -f /var/spool/cron/lastrun/cron.daily
33 >15 7 * * 6 root rm -f /var/spool/cron/lastrun/cron.weekly
34 >0 8 1 * * root rm -f /var/spool/cron/lastrun/cron.monthly
35 >*/10 * * * * root test -x /usr/sbin/run-crons && /usr/sbin/run-crons
36 >
37 >
38 >Cheers,
39 >Renat
40 >
41 >
42 >
43
44 Thanks to everyone for their replies, but especially to Renat, Peter and
45 Willie. Looking again, I saw that the line pertaining to run-crons was
46 commented out. Perhaps it's time for me to increase the size of my
47 console font. ;-)
48
49 Matt
50 --
51 gentoo-user@g.o mailing list