home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #30 / NN_1992_30.iso / spool / comp / os / linux / 20573 < prev    next >
Encoding:
Text File  |  1992-12-15  |  2.5 KB  |  67 lines

  1. Newsgroups: comp.os.linux
  2. Path: sparky!uunet!zaphod.mps.ohio-state.edu!magnus.acs.ohio-state.edu!usenet.ins.cwru.edu!agate!spool.mu.edu!umn.edu!student.tc.umn.edu!lash0002
  3. From: lash0002@student.tc.umn.edu (tim)
  4. Subject: Re: Problems with sysv init sources
  5. Message-ID: <1992Dec15.225459.26039@news2.cis.umn.edu>
  6. Keywords: init
  7. Sender: news@news2.cis.umn.edu (Usenet News Administration)
  8. Nntp-Posting-Host: student.tc.umn.edu
  9. Organization: University of Minnesota
  10. References: <1992Dec15.134909.28520@mintaka.lcs.mit.edu>
  11. Date: Tue, 15 Dec 1992 22:54:59 GMT
  12. Lines: 53
  13.  
  14. In article <1992Dec15.134909.28520@mintaka.lcs.mit.edu> wyvern@gnu.ai.mit.edu (The Wyvern) writes:
  15. >I recently compiled and installed the sources for the sysv-style init
  16. >from tsx-11 (plus the patch). It seems to be having problems
  17. >with runlevels though. If I have initdefault set to, say, 3,
  18. >and a couple lines like this:
  19. >
  20. >rc:3:wait:/etc/rc3
  21. >xd:3:once:/usr/X386/bin/xdm
  22. >
  23. >Init gives me something like:
  24. >INIT: Warning: No processes for this runlevel
  25. >INIT: Entering single user mode
  26. >/ root# 
  27. >So I end up having to have all the entries in my inittab be either
  28. >boot or bootwait, since those are the only ones which get executed.
  29. >Right now my inittab looks like this:
  30. >
  31. >id:3:initdefault: 
  32. >si::sysinit:/etc/bcheckrc 
  33. >rc::bootwait:/etc/rc 
  34. >r3::bootwait:/etc/rc3 
  35. >xd::boot:/usr/X386/bin/xdm
  36. >#c1:1234:respawn:/etc/getty 9600 tty1
  37. >#c2:23:respawn:/etc/getty 9600 tty2
  38. >#c3:23:respawn:/etc/getty 9600 tty3
  39. >#c4:23:respawn:/etc/getty 9600 tty4
  40. >pf::powerwait:/etc/shutdown -f now
  41. ># init
  42. >
  43. >This is highly annoying - it kind of defeats the purpose of an init
  44. >with runlevels. Does anyone have an idea of what might be wrong?
  45. >
  46.  
  47. I have had similar problems. I am not sure that i have really found the 
  48. problem or a good solution, but what I've done is:
  49.     At the end of the function StartEmIfNeeded(), there is a line
  50. that says 
  51. lastlevel = runlevel; 
  52. I've changed it to:
  53. if(sys_level == NORMAL_LEVEL) lastlevel = runlevel;
  54.  
  55. It appeared to me that during the sysinit and boot stages lastlevel was being
  56. set so that entries with an action field of wait or once would appear to have already been executed. This seems to fix it. I am not sure if it really is
  57. a fix, or if it is if it is a good one..i may look at it more later.
  58. I've sent a note to Miquel asking him about it a few days ago but have 
  59. not heard from him yet. If anyone else has anything to say about this 
  60. I'd appreciate hearing about it.
  61.  
  62.     tim
  63.     lash0002@student.tc.umn.edu
  64.  
  65.  
  66.  
  67.