From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,340b484eb611fa9c,start X-Google-Attributes: gidfee84,public X-Google-ArrivalTime: 1995-02-01 13:12:34 PST Path: nntp.gmd.de!Germany.EU.net!howland.reston.ans.net!swrinde!gatech!newsxfer.itd.umich.edu!jobone!fiesta.srl.ford.com!pt9201.ped.pto.ford.com!pt9500.ped.pto.ford.com!cannell From: cannell@pt9500.ped.pto.ford.com (Larry Cannell) Newsgroups: comp.unix.osf.osf1 Subject: rcmgr, rc.config, and rc.config.site Date: 1 Feb 1995 21:12:34 GMT Organization: Ford Motor Co., Powertrain Electronics Message-ID: <3gotg2$37@pt9201.ped.pto.ford.com> Reply-To: cannell@ped.pto.ford.com NNTP-Posting-Host: pt9500.ped.pto.ford.com X-Newsreader: TIN [version 1.2 PL2] 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