Subject: Re: misc/14825: /etc/{daily,weekly,montly} should be unified
To: Luke Mewburn <lukem@wasabisystems.com>
From: Greg A. Woods <woods@weird.com>
List: netbsd-bugs
Date: 12/05/2001 02:33:24
[ On Wednesday, December 5, 2001 at 00:45:00 (+1100), Luke Mewburn wrote: ]
> Subject: Re: misc/14825: /etc/{daily,weekly,montly} should be unified
>
> I'd prefer the one directory and not use (hard) links. We avoided this
> in rc.d, and there's no reason to inflict that upon periodic.d either.
I do very much understand and appreciate the desire to avoid use of hard
links to store configuration information, though I would like to point
out that there are many simple ways this technique can be managed in
such a way that the issues raised by it can be mitigated, if not even
eliminated.
> You could use different rcorder(8) keywords.
Using dependency ordering will not currently work to select which
arbitrary period might choose to execute a script, though of course
extra magic could be added to enable a filter to assist in the
selection. However adding magic upon magic is only asking for trouble.
Something like this needs to be concretely visible and terribly obvious
even on first glance -- it's not a "difficult" problem to conceptualise
in the way that startup ordering can be.
> Or you could just enable
> stuff in /etc/{daily,weekly,monthly}.conf as necessary.
Yes, this is probably still the best way....
> Looking at this stuff is a low priority project that I'm partially
> involved in with another developer (who may choose to reveal himself
> if he so desires).
In that case I'll probably hold off on importing it into my own tree....
(though the more I think about your suggestion of just sticking with
rc.conf-style configuration, the more I begin to think that a
from-scratch implementation which is an only slightly enhanced version
of our current /etc/rc will be all that's necessary (instead of using
/etc/rc.d and /etc/rc.conf just select the directory and config file
based on the period name passed on the command-line). Perhaps the
start/stop/etc. parameter handling could be disabled too....
> > The FreeBSD periodic(8) scheme could be modified to use rcorder too,
> > instead of the filename based ordering they now use....
>
> FreeBSD feature requests are a bit outside the scope of netbsd-bugs ;-)
I think you've misunderstood my intent -- I referred only to the
possibility of using rcorder in NetBSD should FreeBSD's periodic(8)
scheme be imported into NetBSD.
--
Greg A. Woods
+1 416 218-0098; <gwoods@acm.org>; <g.a.woods@ieee.org>; <woods@robohack.ca>
Planix, Inc. <woods@planix.com>; VE3TCP; Secrets of the Weird <woods@weird.com>