Subject: Re: Updating /etc...
To: Luke Mewburn <lukem@telstra.com.au>
From: Todd C. Miller <Todd.Miller@cs.colorado.edu>
List: current-users
Date: 12/19/1995 15:13:00
In message <199512190801.TAA14423@balrog.supp.cpr.itg.telecom.com.au>
so spake Luke Mewburn (lukem):
> Under ULTRIX we use a file, /etc/rc.conf, which has a lot of environment
> variables defined (e.g, DOMAINNAME, HOSTNAME, etc.etc.) The various
> rc* files then setup stuff from there. I think that OSF/1 has a
> similar system.
We do something similar with our sunos & ultrix hosts with an
rc.config file. I was considering implementing this for the
NetBSD startup files when I get back from vacation in January...
The nice thing about this kind of setup is that you get a global
set of parameters that are set in one place. You can split
up the rc files into as many chunks as seems reasonable.
- todd
Here's an example from SunOS:
# /etc/rc.config for 'suod'
#
# RCS: $Header: /fcsk/local/config/hosts/suod/etc/RCS/rc.config,v 1.4 1995/10/30 16:54:37 dowdy Exp $
#
HOSTNAME=suod
ETH0=ei0
IPADDR0=128.138.192.205
BROADCAST0=128.138.192.255
ETH1=
IPADDR1=
BROADCAST1=
NETMASK=0xffffffc0
DOMAINNAME=
TIMESERVER=ntp.cs.colorado.edu
BIOD=8
NFSD=8
ROUTEDFLAGS=-q
SAVECOREDIR=/var/crash/$HOSTNAME
SCREENSAVER=/usr/local/sbin/wiped
DEFAULTROUTE=
AUTOMOUNTFLAGS=
AUTOMASTER=/usr/local/etc/automaps/master
AMDBIN=/usr/local/etc/amdmaps/startamd
XDMCONFIG=/tools/cs/X11/lib/xdm/config.$HOSTNAME
FSCONFIG=
LDCONFIG=
HOSTRC=/etc/rc.$HOSTNAME
#
# Boolean
#
RARPD=1
GATED=0
NAMED=1
ROUTED=1
MOUNTD=1
QUOTAS=0
YPXFRD=0
YPUPDATED=0
YPPASSWDD=0
YPSERV=0
YPBIND=0
C2=0
SAVECORE=0
AUDITD=0
SENDMAIL=0
AUTOMOUNT=0
AMD=1
CARDD=1
CAP=0
ACCOUNTING=0
UUCP=0
RWHOD=0
RFS=0
TMPFS=1
XDM=1
FONTSERVER=1
RCOMSAT=0
NONET=0
KERBSLAVE=1
KERBMASTER=0
SOLBOURNE=1
CLEANRMTAB=1