Gentoo Archives: gentoo-user

From: Renat Golubchyk <ragermany@×××.net>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] script in /etc/cron.daily never runs
Date: Wed, 21 Sep 2005 21:48:40
Message-Id: 20050921234332.6d4d120c@mating-tux.renatik.de
In Reply to: Re: [gentoo-user] script in /etc/cron.daily never runs by John Jolet
1 On Wed, 21 Sep 2005 16:15:04 -0500 John Jolet <john@×××××.net> wrote:
2 > On Wed, 2005-09-21 at 17:11 -0400, Matt Randolph wrote:
3 > > I have a script in /etc/cron.daily that never runs. It works
4 > > properly when run manually and it's been in there for weeks (and a
5 > > reboot or two).
6 > >
7 > > I'm using vixie-cron.
8
9 Is the executable bit set? Otherwise run "chmod u+x scriptname".
10
11 > cron.daily doesn't get run from cron. gets run out of anacron....do
12 > you have anacron installed?
13
14 That's wrong. I don't have anacron installed, I have plain vixie-cron,
15 and cron.{hourly,daily,weekly,monthly} gets run from cron. Here are the
16 relevant lines from /etc/crontab:
17
18 # check scripts in cron.hourly, cron.daily, cron.weekly and cron.monthly
19 0 * * * * root rm -f /var/spool/cron/lastrun/cron.hourly
20 30 6 * * * root rm -f /var/spool/cron/lastrun/cron.daily
21 15 7 * * 6 root rm -f /var/spool/cron/lastrun/cron.weekly
22 0 8 1 * * root rm -f /var/spool/cron/lastrun/cron.monthly
23 */10 * * * * root test -x /usr/sbin/run-crons && /usr/sbin/run-crons
24
25
26 Cheers,
27 Renat
28
29 --
30 Probleme kann man niemals mit derselben Denkweise loesen,
31 durch die sie entstanden sind.
32 (Einstein)

Replies

Subject Author
Re: [gentoo-user] script in /etc/cron.daily never runs Matt Randolph <mattr@×××××.com>