From: thomas@lkg.dec.com (Matt Thomas)
Subject: Re: Alpha OSF startup script
Date: 20 Dec 1993 20:39:22 GMT [thread overview]
Message-ID: <2f52hq$gdt@nntpd.lkg.dec.com> (raw)
In-Reply-To: JOHNS.93Dec20090922@haiti.gsfc.nasa.gov
In article <JOHNS.93Dec20090922@haiti.gsfc.nasa.gov>, johns@haiti.gsfc.nasa.gov (Steve Johns) writes:
|>We just got an Alpha 3000 running OSF1, and it's method of starting up
|>is quite a bit different from Ultrix 4.3, which I am used to.
|>
|>Specifically, I would like advice on the best place/method for calling
|>scripts/commands which I want executed during startup - the things I
|>used to run from rc.local. All this multiple run level stuff with
|>starts and kills is confusing what used to be a very simple process
|>(though I can see the flexibility here...)
|>
|>For example, I need to do a "route add default <address>" command to
|>ensure that a default route is defined in my routing table every time
|>I boot. Where should I put this command? (Also, is there another way
|>to get the system to do define this itself through one of the setup
|>programs?)
Create/edit a file called /etc/routes and place into one or more lines
of the form:
net gateway
(For instance you could put in
default wan-gw
which I what I use for my system).
But the general solution is to create /bin/sh (not csh or bash or ...)
and place it in /sbin/init.d ; the script takes one argument
which will be either start and stop. Then in /sbin/rc3.d create a
symlink to it and have the start with Snn where nn is an appropriate
number for where/when it should be executed. Once you see the scheme
used it's pretty to get your stuff in there.
--
Matt Thomas Internet: thomas@lkg.dec.com
U*X Networking UUCP: ...!decwrl!thomas
Digital Equipment Corporation Disclaimer: This message reflects my own
Littleton, MA warped views, etc.
next prev parent reply other threads:[~1993-12-20 20:39 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
1993-12-20 14:09 Alpha OSF startup script Steve Johns
1993-12-20 17:01 ` Karen Kolling
1993-12-20 17:43 ` Richard Eckman
1993-12-20 20:39 ` Matt Thomas [this message]
1993-12-23 17:23 ` Dr Marco Luchini
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