1 |
On 7/1/07, Daniel Schömer <daniel.schoemer@×××.net> wrote: |
2 |
> Hi! |
3 |
> |
4 |
> Ryan Reich wrote: |
5 |
> > On 7/1/07, Daniel Schömer <daniel.schoemer@×××.net> wrote: |
6 |
> >> $ sudo fcrontab -l systab |
7 |
> >> [...] |
8 |
> >> %hourly 0-30 run-parts --report /etc/cron.hourly |
9 |
> >> %daily * * run-parts --report /etc/cron.daily |
10 |
> >> [...] |
11 |
|
12 |
> > Less ambiguously a bug, though, is that the syslog will only |
13 |
> > record running run-parts and not which parts were run). |
14 |
> |
15 |
> Would it be sufficient to let this also be done by run-parts? |
16 |
> Then there would be records of fcron starting run-parts and |
17 |
> records of run-parts starting each script. |
18 |
|
19 |
That works of course, though if you're at the point of modifying |
20 |
run-parts you might as well modify the crontabs setup. I mean, having |
21 |
run-parts do the logging is silly since fcron already has a logging |
22 |
capability, and since the only point of using run-parts is to assist |
23 |
fcron. Otherwise you're just creating further unnecessary complexity. |
24 |
|
25 |
> > Have you any thoughts on what to do with check_system_crontabs? |
26 |
> > Its schedule is inherently reactive and not periodic, so |
27 |
> > really, administering it with (f)cron at all is a logical |
28 |
> > error. That's why I suggested inotify in the first place. |
29 |
> |
30 |
> I must say, I can't remember that I've seen check_system_crontabs |
31 |
> on my desktop; maybe I just suppressed it :-). Now that I think |
32 |
> of it, I'm remembering an elog message from the fcron ebuild |
33 |
> telling me to use the fcrontab systab for system-wide jobs |
34 |
> instead of /etc/{f,}crontab. |
35 |
> |
36 |
> Using inotify sounds more logical for me than using (f)cron for |
37 |
> this. |
38 |
|
39 |
If there's interest in incorporating this, I wouldn't mind testing my |
40 |
idea. Once I get past the initial resistance to doing anything at |
41 |
all, it's probably two minutes' compilation time plus two more writing |
42 |
the config files to set up. |
43 |
|
44 |
-- |
45 |
Ryan Reich |
46 |
-- |
47 |
gentoo-dev@g.o mailing list |