From: George Chaltas <chaltas@fluid.mro.dec.com>
Subject: Re: Where is /etc/rc.local
Date: 22 Mar 1995 14:22:52 GMT [thread overview]
Message-ID: <3kpbrt$s4f@mrnews.mro.dec.com> (raw)
In-Reply-To: 3knn3s$26bt@yuma.ACNS.ColoState.EDU
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
next prev parent reply other threads:[~1995-03-22 14:22 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
1995-03-21 23:22 Where is /etc/rc.local Brian Weaver
1995-03-22 2:29 ` Yi-Kai Tsai
1995-03-22 14:22 ` George Chaltas [this message]
1995-03-22 17:52 ` Joseph B. Gurman
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