From: mandrews@portal.hq.videocart.com (Mike Andrews)
Subject: Re: shutdown (was Re: (rsh somehost reboot) never exits)
Organization: VideOcart Inc.
Date: Fri, 6 Nov 1992 17:17:25 GMT

In article <PD.92Nov3155621@herts.x.co.uk> pd@x.co.uk (Paul Davey) writes:
>>>>>> On 2 Nov 92 01:59:17 GMT, janet@cs.uwa.oz.au (Janet Jackson) said:
>
>>One of the reasons why shutdown will take so long unnecessarily is that the
>>file /etc/rmtab (which lists all remote machines which have a filesystem
>>currently mounted from the host) will not have entries removed...
>
>Janet> This is the way shutdown should work, but I don't believe it does, at
>Janet> least not under SunOS.
>
>It doesn't, and couldn't unless root on the server was allowed to run
>/etc/unmount (as root) on the client.
>

Showmount also shows our PCs that have NFS mounts via Beame & Whiteside NFS.
PCs aren't going to unmount.

>Janet> For example, one of our machines, a student server, has never
>Janet> had any of its filesystems mounted on my workstation -- yet
>Janet> when shutdown is run on that server, my workstation gets the
>Janet> messages.
>
>All SunOS machines on the local net receive the message - I think it
>uses rwall, but that name is not present in the binary.
>
>It does not broadcast to other machines (non SunOS) on the net.
>

When we shutdown our Auspex, the PCs running B&W NFS, logged in or not, get
the shutdown message as well as all of our Xterminal users who are served by
other Suns.  I suspect that shutdown does a rwall to every network, maybe
with a write to the broadcast address on each attached ethernet. The X users
get the message since they have tty on the Sun machines that NFS mount from the
Auspex over a server backbone.

>Janet> I'd probably use shutdown -k), but it won't make much difference to the
>Janet> warning messages.
>
>It doesn't.
> (SunSoft if you are listening a -q (quiet) switch would be nice.)
>
>My procedure for shutting down server machines in a cross mounted network:
>
>1) Run showmount on the server
>
>2) Unmount the remote mounted directories (showmount may lie)
>
>3) Use wall to warn users on local machine (optional!)
>
>4) Check for users with ps (not who or w, which do not report users
>   without a tty - possible with X)
>
>5) Use /etc/halt to halt
>   or  /etc/reboot to reboot
>   or kill -TERM 1 for single user mode
>
>--
>	Paul Davey		Vision Park    UUCP:     pd@ixi.uucp


Auspex has the shutdown that takes forever on its list of known bugs in 
Auspex's OS release 1.4.1 and recommends the kill -TERM 1:

"Very slow system shutdown (0743)

"Sometimes shutdowns can be very slow. This may happen if the server tries to
send shutdown messages to clients tahta are not up or that do not have rwall
daemons.

"Workaround: Instead of using shutdown to stop the system, try using
kill -TERM 1 to take it to single user mode, and use halt or reboot to bring it
the rest of the way down."

				- Auspex Version 1.4.1 Software release notes

=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Mike Andrews                                                  VideOcart, Inc.
mandrews@hq.videocart.com                                     300 S. Wacker Dr.
Network Administrator                                         Chicago, IL, USA