From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,e431d21d38df2e56 X-Google-Attributes: gidfee84,public X-Google-ArrivalTime: 1994-06-27 16:51:43 PST Path: bga.com!news.sprintlink.net!hookup!yeshua.marcam.com!zip.eecs.umich.edu!newsxfer.itd.umich.edu!gatech!swrinde!ihnp4.ucsd.edu!munnari.oz.au!yoyo.aarnet.edu.au!news.adelaide.edu.au!andrewr From: andrewr@itd.adelaide.edu.au (Andrew Rutherford) Newsgroups: comp.unix.osf.osf1 Subject: Re: Shutdown on OSF/1 ver. 1.3 Date: 27 Jun 1994 23:41:34 GMT Organization: The University of Adelaide Message-ID: <2uno3e$kdn@quandong.itd.adelaide.edu.au> References: <1994Jun15.144348.19298@govonca.gov.on.ca> <2ubu2r$4sb@aed.AED-Graphics.DE> NNTP-Posting-Host: iagu.itd.adelaide.edu X-Newsreader: TIN [version 1.2 PL2] Siggy Hensel (siggy@aed-graphics.de) wrote: : The shutdown process attempts a "wall" to all connected ttys, which hangs at : the invalid tty. If you use wall under such circumstances, your terminal will : hang. You can see the hanging wall and shutdown processes with "ps -ef", but : cannot kill them. : WORKARAOUND: : Shut down the system without wall, just use "init 0" in such a case. Other workaround: (after shutdown initiated) Do a "w" and look for things with a "what" field of "-". Do a "cat /dev/pty?? &" for each one, where ?? is replaced by the "tty" field contents. Another workaround: (before shutdown initiated) Create /etc/nologin with "temporary maintenance" or somesuch, and hope no-one logs out while you're doing this. Start up emacs on /var/adm/utmp. Search for the offending tty's found by "w" as above. Find the ^G in its entry. Replace it (I usually use M-x overwrite-mode) with a ^H (ie ^Q^H), and save. If emacs complains the file has changed while you've been editing it, abort and try again - someone logged out and changed utmp. This tells it that the user has logged out. I do it when I want to get rid of bad entries that are on a system I don't want to reboot to clear straight away. Remember to remove /etc/nologin afterwards - I actually don't user it, I just keep trying - less user impact that way, takes me sometimes one attempt more than otherwise. : Q: Where come the invalid utmp entries from? In my experience, usually from users killing {d,}xterm with a -9, so it doesn't have a chance to remove the utmp entry it created. There are a lot of users out there who habitually try killing something with -9 first time, not giving anything a chance to clean up after itself. : Maybe they sometimes stay in the system, when the nice little dxterm or mwm : core dumps are created when ending a session. Is there a patch? Well, if dxterm is core dumping that's probably it - as the chances are it's not cleaning up on the way out. I always use xterm rather than dxterm so I don't see this. : Somewhere I read you should exit all DECterms before quitting a session. : Do you use X Window Terminals in your environment? I never bother to exit in advance with xterm, and I don't see that problem. Must be a dxterm-specific thing. :-( Cya all, Andrew. -- Andrew Rutherford andrewr@iagu.itd.adelaide.edu Phone: +61 8 303 5669 Plaza 1060, Adelaide Uni Fax: +61 8 303 4400 Real Programmers always confuse Christmas and Mobile: +61 414 313 767 Halloween because OCT 31 == DEC 25 !