Usenet comp.unix.osf.osf1 (1992-2004)
 help / color / mirror / Atom feed
From: cannell@pt9500.ped.pto.ford.com (Larry Cannell)
Subject: rcmgr, rc.config, and rc.config.site
Date: 1 Feb 1995 21:12:34 GMT	[thread overview]
Message-ID: <3gotg2$37@pt9201.ped.pto.ford.com> (raw)

This is an FYI for those who are looking to put their RC startup variables
in both /etc/rc.config and /etc/rc.config.site. The short answer is: DONT!

The program rcmgr does a good job of managing these files.  For background,
rcmgr will first look in /etc/rc.config.site, if the variable isn't found
there then it will look in /etc/rc.config.  This would be a nice feature for
us since we could put host specific stuff in rc.config (like hostname) and
generic site stuff in rc.config.site.

Unfortunately some startup scripts in /sbin/init.d do not follow standards
and do not use rcmgr to get its needed startup variables.  Specifically,
look in the files /sbin/init.d/inet (starts network, sets hostname) or 
/sbin/init.d/nfs and you will see a line like this:

if [ -f /etc/rc.config ] ; then
        . /etc/rc.config

Which means that they are dot executing the rc.config file bypassing rcmgr
altogether. A good example of following this standard can be found in the
file /sbin/init.d/named:

BIND_CONF=`rcmgr get BIND_CONF`
BIND_SERVERTYPE=`rcmgr get BIND_SERVERTYPE`
BIND_SERVERARGS=`rcmgr get BIND_SERVERARGS`

Hey OSF/1 developers, GET IT TOGETHER AND FIX THIS!

--
Larry Cannell (cannell@ped.pto.ford.com)
Powertrain Electronics
Ford Motor Company


                 reply	other threads:[~1995-02-01 21:12 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox