Re: include format for /etc/rc.conf

2006-08-30 Thread Jonathan McKeown
On Wednesday 30 August 2006 09:40, Dan Mahoney, System Admin wrote:
 Hey all,

 Are there any supported formats for INCLUDES in /etc/rc.conf such that I
 can drop default configs into /etc/rc.conf and then have files in a
 certain directory (ala includerc) override them?  Basically, I'd like to
 do mass-updates of several dozen machines' configs normally found in
 /etc/rc.conf, but then have per-machine configs (like hostnames)
 elsewhere.

Look at rc_conf_files (man rc.conf).

By default there are three ``levels'' of config:

/etc/defaults/rc.conf
/etc/rc.conf
/etc/rc.conf.local

each one overriding the previous one.

Jonathan
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: include format for /etc/rc.conf

2006-08-30 Thread Alex Zbyslaw

Dan Mahoney, System Admin wrote:


Hey all,

Are there any supported formats for INCLUDES in /etc/rc.conf such that 
I can drop default configs into /etc/rc.conf and then have files in a 
certain directory (ala includerc) override them?  Basically, I'd like 
to do mass-updates of several dozen machines' configs normally found 
in /etc/rc.conf, but then have per-machine configs (like hostnames) 
elsewhere.


rc.conf is just a shell script so you can include a file like:

. /path/to/include

but make sure it exists on every host.  It could easily be

. /etc/rc.conf.`hostname -s`

as long as you don't have a host called local :-)


There is also rc.conf.local where you could put machine specific and 
leave rc.conf for your generic defaults.  Not clear to me if 
rc.conf.local is meant to last though as it is described as historic.


--Alex




___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: include format for /etc/rc.conf

2006-08-30 Thread Gabriel O'Brien
You might want to look at /etc/rc.conf.local, though I would consider 
just writing a script to handle what you want to do since rc.conf.local 
isn't really the FreeBSD way, seems to be more of an OpenBSD approach.


See: 'man rc'

cheers,
Gabriel

--
Gabriel O'Brien
IT Analyst, MPS-EN-CBC.ca
w: 416-205-8740 m: 416-996-5679

Dan Mahoney, System Admin wrote:

Hey all,

Are there any supported formats for INCLUDES in /etc/rc.conf such that I 
can drop default configs into /etc/rc.conf and then have files in a 
certain directory (ala includerc) override them?  Basically, I'd like to 
do mass-updates of several dozen machines' configs normally found in 
/etc/rc.conf, but then have per-machine configs (like hostnames) elsewhere.


-Dan Mahoney

--

Don't be so depressed dear.

I have no endorphins, what am I supposed to do?

-DM and SK, February 10th, 1999

Dan Mahoney
Techie,  Sysadmin,  WebGeek
Gushi on efnet/undernet IRC
ICQ: 13735144   AIM: LarpGM
Site:  http://www.gushi.org
---

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to 
[EMAIL PROTECTED]



___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]