Use of rcorder for local rc.d/*.sh scripts

Doug Barton dougb at FreeBSD.org
Mon Jun 13 05:29:50 GMT 2005


Brooks Davis wrote:

> I don't like the idea of tagging all the scripts.  First, it makes the
> update suck.

rm /etc/rc.d/* ; mergemaster -i

I understand that this mechanism is a little more invasive, but it uses the 
existing rc.d framework without adding too much additional code. Also, using 
keywords makes this really easy to work around, since keywords are harmless 
if they aren't actually invoked.

> Second, that's a lot
> places to keep state up to date.  JR's proposal of using a marker script
> had the downside of adding slightly more code to /etc/rc, but the
> advantage of not having to keep all the files in the right place.

I'm not sure what you mean by "a lot of places to keep state." This is a 
one-time modification, and any scripts that we need to add to bootearly are 
easily added. The disadvantage to a marker script is that if some other 
dependency gets juggled in another script, the marker could run in a 
different order. By using keywords we can be 100% sure what will happen in 
each phase.

> The local_startup collector looks pretty good. 

Thanks.

 > I'm not 100% how I feel
> about the *.sample exception.  On one hand it seems like the safest
> thing to do, on the other hand, it's the sort of feature that tends to
> hang on forever. 

I would say that's accurate. :) I think that when we get farther down the 
road of the conversion (and we can be sure that things won't start 
accidentally if the user doesn't put the right things in 
/etc/rc.conf[.local]) then we can carp on this more.

> I'd be slightly inclined to complain about .sample
> scripts that are executable to try and get people to stop installing
> them.  We should almost certainly complain about script that aren't *.sh
> that are not executable.  Effectivly those will all be all port bugs.

I agree, but my preference would be that we also hold off on this till we're 
further down the road of the transition. I'm flexible on all this stuff 
though, let me know what you think.

Doug

-- 

     This .signature sanitized for your protection



More information about the freebsd-rc mailing list