From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,2d758a2ef25f7759 X-Google-Attributes: gidfee84,public X-Google-ArrivalTime: 1995-03-23 03:31:07 PST Path: nntp.gmd.de!dearn!blekul11!ccsdec1.ufsia.ac.be!reks.uia.ac.be!idefix.CS.kuleuven.ac.be! Belgium.EU.net!EU.net!howland.reston.ans.net!math.ohio-state.edu!uwm.edu!lll-winken.llnl.gov!decwrl!pa.dec.com!mrnews.mro.dec.com!news From: George Chaltas Newsgroups: comp.unix.osf.osf1 Subject: Re: Where is /etc/rc.local Date: 22 Mar 1995 14:22:52 GMT Organization: Digital Equipment Corporation - Marlboro, MA Message-ID: <3kpbrt$s4f@mrnews.mro.dec.com> References: <3knn3s$26bt@yuma.ACNS.ColoState.EDU> NNTP-Posting-Host: darkwing.mro.dec.com weaver@vagus.vth.colostate.edu (Brian Weaver) wrote: > > Please help a new osf/1 admin. Can someone tell me the > equivilent of /etc/rc.local under osf/1 2.0 ? I.E. where > httpd would be launched from on boot.. > > thanks > > -- Brian > There isn't a single monolithic script as there is under ULTRIX. Instead there are directories containing startup (and shutdown) scripts. You probably want to launch your daemon when your system goes to run-level 3 (full multi-user), so you should do something like this: Write a Bourne shell script that starts and stops your daemon, based on its first argument ("start" or "stop"). Put it in the directory /sbin/init.d, name it anything you like so long as it doesn't conflict with what's already there. You'll probably want to look at some of the scripts that are already there for examples (try the xdm script). You may want to reference the script /etc/rc.config in your script, to define variables including the hostname and network address. After you've put your script in place (make sure it has the executable bits set!), go to /sbin/rc3.d and make a soft link to your script. The link should have a name that starts with S followed by a two digit number -- these scripts are executed in numerical order, so put yours after any others that need to be running before yours can start (such as the S00inet script). This should get you started. George Chaltas Digital Equipment Corporation