home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.unix.xenix.sco
- Path: sparky!uunet!europa.asd.contel.com!darwin.sura.net!mips!zaphod.mps.ohio-state.edu!cs.utexas.edu!chinacat!chip
- From: chip@chinacat.unicom.com (Chip Rosenthal)
- Subject: Re: Shutdown does not prevent logins
- Organization: Unicom Systems Development, Austin, TX
- Date: Sun, 26 Jul 1992 19:33:46 GMT
- Message-ID: <1992Jul26.193346.328@chinacat.unicom.com>
- References: <4474@teslab.lab.oz.au>
- Lines: 26
-
- In article <4474@teslab.lab.oz.au>
- andrew@teslab.lab.oz.au (Andrew Phillips) writes:
- >We recently upgraded to Xenix 2.3.4. Now shutdown does not stop
- >users logging in once it is run. This means that if someone logs in
- >in the minute before the system is shutdown they will have no warning.
-
- I don't know that this was ever the case. I'm not saying that it
- isn't, just that I don't recall what the old behaviour was.
-
- /etc/shutdown has not changed in ages. Starting at two minutes before
- the shutdown, /etc/shutdown does a `kill -3 1'. This tells `init' to
- stop spawning gettys on terminal lines. It does not, however, kill
- off any gettys already sitting there with a `login:' prompt.
-
- If you want to kill off those gettys, you could modify /etc/shutdown
- to do something like:
-
- pids=`ps -ef | awk '$1 == "root" && $8 == "-" && $9 ~ /^tty/ {print $2}'`
- [ "$pids" ] && kill $pids
-
- right after the `kill -3 1'.
-
- --
- Chip Rosenthal 512-482-8260 | Let the wayward children play. Let the wicked
- Unicom Systems Development | have their day. Let the chips fall where they
- <chip@chinacat.Unicom.COM> | may. I'm going to Disneyland. -Timbuk 3
-