home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.unix.wizards
- 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
- From: jeff@dwerger.nshore.org (Jeffrey E. Finucane)
- Subject: Restarting Xenix init (changing run levels)
- Organization: Custom Tailored Systems, Inc.
- Date: Tue, 18 Aug 1992 20:38:37 GMT
- Message-ID: <1992Aug18.203837.2094@dwerger.nshore.org>
- Summary: I cannot make init respawn its gettys after a SIGQUIT
- Keywords: init SIGQUIT SIGINT SIGHUP signals
- References: <1992Aug4.224529.12211@dwerger.nshore.org>
- Lines: 34
-
- In article <1992Aug4.224529.12211@dwerger.nshore.org> I wrote of my problem.
- No suitable solution has been found from the readers of comp.unix.xenix.sco
- after two weeks. If necessary I'll write an init. Perhaps some kind
- wizard could point out some "gotcha"'s. Thanks.
- Below is <1992Aug4.224529.12211@dwreger.nshore.org>.
-
- >Xenix gurus:
- >
- > I'd like to be able to bring a SCO Xenix system to a "single user" mode
- >and back to a "multiple user" mode from a shell script or other program.
- >The portion which is giving me fits is that of disallowing logins. Ideally
- >what I'd like to do would be to send the init process a SIGQUIT, kill the
- >gettys and then inspire init to start spawning gettys again.
- >
- > It seems that after init receives a SIGQUIT that the only way to force
- >it to respawn gettys is to cycle it through the "single user" mode. Is
- >there another way?
- >
- > I could do something along the lines of saving /etc/passwd, replacing
- >/.profile (saving a copy), sending init a SIGHUP, and having the new
- >/.profile restore /.profile and /etc/passwd from the saved copies. This
- >seems rather messy, however. It would be nice if a receipt of SIGINT would
- >cause init to start gettys and respawn, but alas, this seems not to be the
- >case.
- >
- > Is there another init I could plug into this system?
- >
- > Jeff
-
- --
-
- Jeffrey E. Finucane INTERNET: jeff@dwerger.nshore.org
- Custom Tailored Systems UUCP: {uunet|backbone}!dwerger!jeff
- Data Phone: (216) 935-2712 Telebit Trailblazer Voice: (216) 935-0252
-