* rcmgr, rc.config, and rc.config.site
@ 1995-02-01 21:12 Larry Cannell
0 siblings, 0 replies; only message in thread
From: Larry Cannell @ 1995-02-01 21:12 UTC (permalink / 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
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~1995-02-01 21:12 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1995-02-01 21:12 rcmgr, rc.config, and rc.config.site Larry Cannell
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox