home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #18 / NN_1992_18.iso / spool / comp / unix / wizards / 3646 < prev    next >
Encoding:
Text File  |  1992-08-18  |  2.1 KB  |  47 lines

  1. Newsgroups: comp.unix.wizards
  2. Path: sparky!uunet!paladin.american.edu!darwin.sura.net!zaphod.mps.ohio-state.edu!magnus.acs.ohio-state.edu!usenet.ins.cwru.edu!nshore!dwerger!jeff
  3. From: jeff@dwerger.nshore.org (Jeffrey E. Finucane)
  4. Subject: Restarting Xenix init (changing run levels)
  5. Organization: Custom Tailored Systems, Inc.
  6. Date: Tue, 18 Aug 1992 20:38:37 GMT
  7. Message-ID: <1992Aug18.203837.2094@dwerger.nshore.org>
  8. Summary: I cannot make init respawn its gettys after a SIGQUIT
  9. Keywords: init SIGQUIT SIGINT SIGHUP signals
  10. References: <1992Aug4.224529.12211@dwerger.nshore.org>
  11. Lines: 34
  12.  
  13. In article <1992Aug4.224529.12211@dwerger.nshore.org> I wrote of my problem.
  14. No suitable solution has been found from the readers of comp.unix.xenix.sco
  15. after two weeks.  If necessary I'll write an init.  Perhaps some kind
  16. wizard could point out some "gotcha"'s.  Thanks.
  17. Below is <1992Aug4.224529.12211@dwreger.nshore.org>.
  18.  
  19. >Xenix gurus:
  20. >
  21. >   I'd like to be able to bring a SCO Xenix system to a "single user" mode
  22. >and back to a "multiple user" mode from a shell script or other program.
  23. >The portion which is giving me fits is that of disallowing logins.  Ideally
  24. >what I'd like to do would be to send the init process a SIGQUIT, kill the
  25. >gettys and then inspire init to start spawning gettys again.
  26. >
  27. >   It seems that after init receives a SIGQUIT that the only way to force
  28. >it to respawn gettys is to cycle it through the "single user" mode.  Is
  29. >there another way?
  30. >
  31. >   I could do something along the lines of saving /etc/passwd, replacing
  32. >/.profile (saving a copy), sending init a SIGHUP, and having the new
  33. >/.profile restore /.profile and /etc/passwd from the saved copies.  This
  34. >seems rather messy, however.  It would be nice if a receipt of SIGINT would
  35. >cause init to start gettys and respawn, but alas, this seems not to be the
  36. >case.
  37. >
  38. >   Is there another init I could plug into this system?
  39. >
  40. >   Jeff
  41.  
  42. -- 
  43.  
  44. Jeffrey E. Finucane                  INTERNET: jeff@dwerger.nshore.org
  45. Custom Tailored Systems            UUCP: {uunet|backbone}!dwerger!jeff
  46. Data Phone: (216) 935-2712  Telebit Trailblazer  Voice: (216) 935-0252
  47.