Local rc scripts (was: Software installation opinions needed)

F. L. Charles Seeger III seeger at thedon.cis.ufl.edu
Thu Sep 27 12:54:05 AEST 1990


In article <KLM.90Sep26145601 at goon.cme.nist.gov> klm at cme.nist.gov (Ken Manheimer) writes:
| We've actually implemented a refinement on the 'rc.site' scheme that
| walter mentioned in a prior article...
|
| ... The refinement to fix this
| consists of changing the hook to the global rc.site to the following
| sort of thing:

synopsis:	if available cp rc.site from nfs server to /etc/rc.site
		execute local copy (possibly old)

We rdist our SunOS 4.1 rc files (ours are modified from the distributed
ones), rather than using rc.site.  We do use a *host* specific rc, though.
Currently, it is run from rc.local rather than rc, though I considered
changing that so as to do host specific TFS% mounts (which must be done
after inetd is running, which is started late in rc).  Instead, I am
currently using a "mount -vat tfs" command at the end of the rc script
for this purpose and using the fstab for personality.  Nonetheless, rc
is probably the more general (and better) place to run either rc.site
or rc.`hostname`.

#
# Do anything else specific to this host...
#
if [ -f /etc/rc.`hostname` ]; then
	sh /etc/rc.`hostname`
fi

I esthetically abhor testing on explicit hostnames in rc scripts.

Regards,
Chuck
--
% Translucent File Service, new in SunOS 4.1.
--
  Charles Seeger    E301 CSE Building             Office: +1 904 392 1508
  CIS Department    University of Florida         Fax:    +1 904 392 1220
  seeger at ufl.edu    Gainesville, FL 32611-2024



More information about the Comp.unix.admin mailing list