RC variable naming

joerg at britannica.bec.de joerg at britannica.bec.de
Sat Nov 19 16:05:12 PST 2005


On Sat, Nov 19, 2005 at 01:51:08PM -0800, Matthew Dillon wrote:
> :
> :I was thinking about deprecating the use of X_enable by effectively
> :turning the helper function into a NOP after setting a special internal
> :variable. That variable would be processed by load_rc_config to load the
> :value of the old variable if necessary (read: if present). That would be
> :active for 1.4 (maybe as option RCNG_OLDNAME?), so that users updating
> :from 1.2 are not hurt too badly.
> :
> :Joerg
> 
>     Lets not do anything for 1.4.  We can figure out what to do after
>     the release.  It seems to me that we will probably want to go
>     the way of NetBSD to make pkgsrc integration easier.

Doing it now makes the migration a bit less painful, since (most likely)
lesser users are affected. The RCNG_OLDNAME is just an idea, I'd try to
make it fully transparent for the initial conversion (with the exception
of warning about deprecated usage). The changes to be made are localised
to /etc/rc.conf and /etc/rc.conf.d/*.

Joerg





More information about the Users mailing list