From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 1164f8,f8d1b4e082076cea X-Google-Attributes: gid1164f8,public X-Google-ArrivalTime: 1993-12-20 13:03:21 PST Path: gmd.de!xlink.net!howland.reston.ans.net!europa.eng.gtefsd.com!uunet!olivea!decwrl!pa.dec.com!nntpd.lkg.dec.com!lkg.dec.com!thomas From: thomas@lkg.dec.com (Matt Thomas) Newsgroups: comp.sys.dec Subject: Re: Alpha OSF startup script Date: 20 Dec 1993 20:39:22 GMT Organization: Digital Equipment Corporation Sender: thomas@netrix.lkg.dec.com (Matt Thomas) Distribution: local, usa Message-ID: <2f52hq$gdt@nntpd.lkg.dec.com> References: Reply-To: thomas@lkg.dec.com NNTP-Posting-Host: netrix.enet.dec.com X-Newsreader: mxrn 6.18-8 In article , 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
" 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.