1 |
> Are thse system tasks supposed to be fired |
2 |
> automatically by fcron? |
3 |
|
4 |
You missed the message that flew by when emerging fcron... |
5 |
|
6 |
Fcron includes the /etc/cron.* directories but does not install cron jobs |
7 |
for them automatically, and it does not support /etc/crontab (as other crons |
8 |
do). |
9 |
|
10 |
You need to manually add them to the root crontab. Easiest way would be to: |
11 |
|
12 |
1. su - (or login as root). |
13 |
2. crontab -l root > root.crontab (to get any existing cron entries for |
14 |
root). |
15 |
3. vi root.crontab and add the following: |
16 |
|
17 |
# Clean the lastrun directories... |
18 |
0 * * * * rm -f /var/spool/cron/lastrun/cron.hourly |
19 |
1 3 * * * rm -f /var/spool/cron/lastrun/cron.daily |
20 |
15 4 * * 6 rm -f /var/spool/cron/lastrun/cron.weekly |
21 |
30 5 1 * * rm -f /var/spool/cron/lastrun/cron.monthly |
22 |
|
23 |
# Now do the command to determine what tasks need to be executed |
24 |
# Only generate emails on errors... |
25 |
!nolog(true) |
26 |
*/10 * * * * /usr/bin/test -x /usr/sbin/run-crons && |
27 |
/usr/sbin/run-crons |
28 |
|
29 |
4. crontab root.crontab (to make the changes take effect) |
30 |
|
31 |
This will install the appropriate cron jobs to have the /etc/cron.* scripts |
32 |
run. |
33 |
|
34 |
Dave |
35 |
|
36 |
|
37 |
|
38 |
-- |
39 |
gentoo-user@g.o mailing list |