Gentoo Archives: gentoo-user

From: Hans-Werner Hilse <hilse@×××.de>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] Daily dumb question... chron.
Date: Mon, 18 Jul 2005 12:35:39
Message-Id: 20050718142547.53b4fc5a.hilse@web.de
In Reply to: [gentoo-user] Daily dumb question... chron. by "Steve [Gentoo]"
1 Hi,
2
3 On Mon, 18 Jul 2005 13:06:29 +0100
4 "Steve [Gentoo]" <gentoo_steve@×××××××.uk> wrote:
5
6 > I've noticed the directories /etc/cron.daily; /etc/cron.hourly;
7 > /etc/cron.monthly etc. and therein a bunch of non-user-specific
8 > administration tasks... For example, in ./etc/cron.daily I've
9 > logrotate.cron and rulesdujour - but none of these appear to have run in
10 > the last month. Are thse system tasks supposed to be fired
11 > automatically by fcron? What would be the easiest way to get all my
12 > periodic system administration tasks defined in these directories to be
13 > fired automatically? Did I make a sensible choice with fcron?
14
15 Can't tell much about fcron (esp. if its config syntax is similar to my
16 vixie-cron), but for me, vixie-cron installed a /etc/crontab that
17 contains the following lines:
18
19 0 * * * * root rm -f /var/spool/cron/lastrun/cron.hourly
20 1 3 * * * root rm -f /var/spool/cron/lastrun/cron.daily
21 15 4 * * 6 root rm -f /var/spool/cron/lastrun/cron.weekly
22 30 5 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 this does the job.
26
27 -hwh
28 --
29 gentoo-user@g.o mailing list