home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #3 / NN_1993_3.iso / spool / comp / sys / hp / 15233 < prev    next >
Encoding:
Text File  |  1993-01-23  |  2.6 KB  |  54 lines

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