Subject: default values for variables in rc.d scripts
To: None <>
From: Klaus Heinz <>
List: tech-pkg
Date: 11/04/2002 21:43:08

with NetBSD 1.5.x. load_rc_config() (in rc.subr) loads /etc/rc.conf and
thus overrides any values for variables (${rcvar} and ${rcvar}_flags)
set in the rc.d script.

With 1.6, load_rc_config() only loads /etc/rc.conf once during startup
(depends on $_rc_conf_loaded) and does _not_ override the variables.

How are we supposed to set default values for those variables in package
rc.d scripts?

Maybe we could use files in PKG_SYSCONFBASE/rc.conf.d/ and install them
in /etc/rc.conf.d/ the same way we do with RCD_SCRIPTS from
PKG_SYSCONFBASE/rc.d/ to /etc/rc.d/?