home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #3 / NN_1993_3.iso / spool / comp / os / linux / 25832 < prev    next >
Encoding:
Internet Message Format  |  1993-01-28  |  3.5 KB

  1. Path: sparky!uunet!math.fu-berlin.de!ira.uka.de!scsing.switch.ch!univ-lyon1.fr!ghost.dsi.unimi.it!rpi!usenet.coe.montana.edu!news.u.washington.edu!ns1.nodak.edu!plains!ndsuvm1!nu013809
  2. From: NU013809@NDSUVM1.BITNET (Greg Wettstein)
  3. Newsgroups: comp.os.linux
  4. Subject: Re: SYS/V init refuses to run my /etc/rc
  5. Message-ID: <93028.073146NU013809@NDSUVM1.BITNET>
  6. Date: 28 Jan 93 13:31:46 GMT
  7. References: <1993Jan27.164249.29307@engr.uark.edu>
  8.  <1993Jan28.082729.11300@aixrs0.hrz.uni-essen.de>
  9. Organization: North Dakota Higher Education Computer Network
  10. Lines: 57
  11.  
  12. .....  This damnable mainframe, doesn't recognize backspace, sorry about
  13. accidentally sending the first part of this message.
  14.  
  15. Anyway I was saying that I uncovered this problem when I modified the
  16. networking daemons (named, inetd etc) so that they could be controlled by
  17. init.  I chased a problem with named starting up but refusing to function
  18. which I traced back to this problem with not getting all file descriptors
  19. closed and inconsistent use of the setsid() call.
  20.  
  21. After these problems I decided to give the sysvinit package a try and after
  22. some modifications have decided to use this as our init base at the Center.
  23.  
  24. There were a couple of bugs, notably one in which all the open file
  25. descriptors were not closed after init forked a desired process but I am
  26. sure Michael know's about these.  He had mentioned last week that a new
  27. version would be coming out soon that addressed a number of bugs.
  28.  
  29. One thing that I did like about the bootsys package was the fact that it
  30. provided the disk sync daemon internally as part of init.  I always like to
  31. reduce parts count so I modified the sysvinit package to provide a similar
  32. service.
  33.  
  34. In order to do this without breaking the child wait and general sleep code I
  35. implemented a new alarm scheduler that allows init to track multiple alarm
  36. sources.  It seems to be working well after about a week of fairly intensive
  37. testing on our development machines.
  38.  
  39. I also converted the warning/logging code in the sysvinit package to use
  40. syslog facilities.  As long as I was hacking I also made a somewhat
  41. egregious modification which allows init to modify its command line
  42. arguements to show the current run-level being held by init.  I am not much
  43. for this type of thing since modification of command-line arguements is
  44. something not well-defined across systems.  Since init is going to be pretty
  45. specific for Linux I thought what the heck.  The upshot of this modification
  46. is that a ps -aux will show what run-level the system is at.
  47.  
  48. N.B.: I was wondering what people would think of providing for proctitle
  49. support in the kernel.  There are a number of things which would benefit
  50. from a 'standardized' method of modifying the command arguements held in the
  51. kernel's task structure.
  52.  
  53. None of this is meant to cast a shadow on either of the two init packages.
  54. Working with both of them leaves me with the impression that the authors
  55. spent considerable amounts of time on their respective implementations.
  56. Hopefully some of my experiences will save other's frustration.
  57.  
  58.                             As always,
  59.                             Dr. G.W. Wettstein
  60.                             Oncology Research Division Computing Facility
  61.                             Fargo Clinic / MeritCare
  62.  
  63.                             UUCP: uunet!plains!wind!greg
  64.                             INTERNET: greg%wind.uucp@plains.nodak.edu
  65.                             Phone: 701-234-2833
  66.  
  67. `The truest mark of a man's wisdom is his ability to listen to other
  68.  men expound their wisdom.'
  69.