Usenet comp.unix.osf.osf1 (1992-2004)
 help / color / mirror / Atom feed
From: andrewr@itd.adelaide.edu.au (Andrew Rutherford)
Subject: Re: Shutdown on OSF/1 ver. 1.3
Date: 27 Jun 1994 23:41:34 GMT	[thread overview]
Message-ID: <2uno3e$kdn@quandong.itd.adelaide.edu.au> (raw)
In-Reply-To: 2ubu2r$4sb@aed.AED-Graphics.DE

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 !


      reply	other threads:[~1994-06-27 23:41 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1994-06-15 14:43 Shutdown on OSF/1 ver. 1.3 Dick Abraham
1994-06-16  2:02 ` Wuxu Peng
1994-06-16 12:15 ` Robert Benites
1994-06-23 12:10 ` Siggy Hensel
1994-06-27 23:41   ` Andrew Rutherford [this message]
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox