Opened 15 years ago

Closed 15 years ago

#15 closed defect (fixed)

rc_conf_files="rc.node.local" does not work

Reported by: huub Owned by:
Priority: major Version:
Keywords: Cc:

Description

The network configuration in rc.node.local, referrenced in rc.conf by the line rc_conf_files="rc.node.local" is not applied.
Could this be related to the location of rc.conf in the /conf/base/etc directory (i.e. on partition da0s1a) and rc.node.local in the /cfg directory (i.e. on partition da0s3)?

Change History (3)

comment:1 by richardvm, 15 years ago

http://unix.derkeiler.com/Mailing-Lists/FreeBSD/stable/2007-06/msg00370.html

rc_conf_files is declared before /etc/rc.conf is processed.

Why not use the old 'include' statement?

comment:2 by huub, 15 years ago

Natuurlijk kan dat: een hack van een paar regels die werkt. Maar in het algemeen zou ik liever de standaard-freebsd manier van configureren willen hanteren. Het is ook niet erg bevredigend dat een feature die al jaren in het handbook vermeld staat niet zou werken. Dat zou toch erg curieus zijn.

Het blijkt dat rc_conf_files alleen in de default /etc/defaults/rc.conf file effect heeft. Daar staan als default
rc_conf_files="/etc/rc.conf /etc/rc.conf.local"

Er zijn dus twee oplossingen:

  1. de file rc.node.local een andere naam geven, t.w. rc.conf.local

je moet hiervoor wlconfig script aanpassen.

of

  1. in bestand /etc/defaults/rc.conf zetten:

rc_conf_files="/etc/rc.conf /etc/rc.node.local"

Om alles zoveel mogelijk standaard te houden en omdat rc.node.local een wat vreemde naam is voor een proxy lijkt mij methode 1 het meest aantrekkelijke.

comment:3 by richardvm, 15 years ago

Resolution: fixed
Status: newclosed

Optie 1 doorgevoerd

Note: See TracTickets for help on using tickets.