home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.sys.hp
- Path: sparky!uunet!cs.utexas.edu!uwm.edu!psuvax1!ukma!hp750!justin
- From: justin@hp750.me.engr.uky.edu (Justin Sullivan)
- Subject: Re: Init level at boot
- Message-ID: <justin.727773120@hp750>
- Sender: news@ms.uky.edu (USENET News System)
- Nntp-Posting-Host: hp750.me.engr.uky.edu
- Organization: University Of Kentucky, Dept. of Math Sciences
- References: <JP107.93Jan23032600@apus.cus.cam.ac.uk>
- Date: Sat, 23 Jan 1993 07:12:00 GMT
- Lines: 41
-
- jp107@cus.cam.ac.uk (Jon Peatfield) writes:
-
- >I'm ashamed to ask such a simple question, but can someone tell me how
- >to bring an HP up to a particular init level at boot. I know how to
- >take it down but I can't find any way from the initial boot loader of
- >specifying which init level to run to. The reason for this is that I
- >occasionally mess up the startup stuff on machines so I'd like to boot
- >single use to fix the mess. On a Sun I'd just "b -s" on old roms and
- >"boot -s" on new ones (assuming I havn't nobbled them). What is the
- >magic on HPs?
-
- This is described in sufficient detail in the "Concepts for the System
- Administrator" manual, so be sure to read that if you want the whole scoop..
- BUT.. It's in /etc/inittab. Mine reads:
-
- init:3:initdefault:
- stty::sysinit:stty 9600 clocal icanon echo opost onlcr ienqak ixon icrnl ignpar </dev/systty
- brc1::bootwait:/etc/bcheckrc </dev/console >/dev/console 2>&1 # fsck, etc.
- slib::bootwait:/etc/recoversl </dev/console >/dev/console 2>&1 #shared libs
- brc2::bootwait:/etc/brc >/dev/console 2>&1 # boottime commands
- link::wait:/bin/sh -c "rm -f /dev/syscon; \
- ln /dev/systty /dev/syscon" >/dev/console 2>&1
- cwrt::bootwait:cat /etc/copyright >/dev/syscon # legal requirements
- rc ::wait:/etc/rc </dev/console >/dev/console 2>&1 # system initialization
- powf::powerwait:/etc/powerfail >/dev/console 2>&1 # power fail routines
- lp ::off:nohup sleep 999999999 </dev/lp & stty 9600 </dev/lp
- halt:6:wait:/usr/lib/X11/ignition/shutdown.ksh \
- # NOTE: run-level 6 is reserved for system shutdown.
- cons:012456:respawn:/etc/getty -h console console # system console
- vue :34:respawn:/etc/vuerc # VUE validation and invocation
-
- The first line shows the default (hence the term 'initdefault' :) runlevel.
- This is what the system will startup in. This is the only 'safe' way to
- do it, but for the impatient or foolhearty, there's telinit, which signals
- init directly.
-
- --
- *******************************************************************
- * Justin P. Sullivan * justin@engr.uky.edu (Internet) *
- * System Administrator * justin@mik.uky.edu (NeXTMail) *
- * Computational Fluid Dynamics * JUSTIN@UKCC (BITNET) *
-