SUMMARY: disabling rwall from /usr/bin/shutdown

From: Christopher L. Barnard (cbar44@tsg.cbot.com)
Date: Mon Oct 04 1999 - 13:41:21 CDT


I asked:

> How would I go about disabling the rwall to various clients before I run
> /usr/sbin/shutdown on a server? Some of these servers take half an hour
> or more to shut down, because they are trying to rwall individually to
> each client. Many of these clients (one at a time, of course) time out when
> they are contacted via RPC. Since I don't notify users when a server goes
> down anyway, this is completely redundant. I found nothing in /etc/rc?.d/*
> that appeared to be what I want and the man page for shutdown makes no
> mention of this. Has anyone disabled the rwall from /usr/sbin/shutdown?
> I don't want to do a simple /etc/halt because the shutdown scripts for
> other things (in particular sybase) I do want to have run. Thanks.

The answer:

<slaps head> I spent so much time looking at the rc scripts that I neglected
to look at the /usr/sbin/shutdown program, which is itself a shell script.
I can just pull the rwall stuff out of there. Several people mentioned that
doing an "init" does the is the shutdown without the wall; I haven't toyed with
that so I am not sure. Old habits die hard and I'm used to doing a shutdown.
One person said to just do an /etc/reboot or /etc/halt and that will run the
shutdown scripts. No they don't! Running /etc/reboot or /etc/halt does
NOT run the shutdown scripts /etc/rc?.d/K*. Several people said to just
disable wall in inet. The problem here is that shutdown would still be
trying to rwall-- much better to cancel it at the source IMHO.

+-----------------------------------------------------------------------+
| Christopher L. Barnard O When I was a boy I was told that |
| cbarnard@tsg.cbot.com / \ anybody could become president. |
| (312) 347-4901 O---O Now I'm beginning to believe it. |
| http://www.cs.uchicago.edu/~cbarnard --Clarence Darrow |
+----------PGP public key available via finger or PGP keyserver---------+

Thanks to:

Erwin Fritz <efritz@GLJA.com>
blymn@baea.com.au (Brett Lymn)
Roger Fujii <rmf@lookhere.com>
Mark Olson <mark_olson@adc.com>
"A jannu" <achladi@hotmail.com>
Birger Wathne <Birger.Wathne@ark.no>
Harvey Wamboldt <harvey@iotek.ns.ca>
"David Evans" <DJEVANS@au.oracle.com>
dvella@melitacable.com (Duncan Vella)
"Adzman S. Kasim" <adzman@no1.nc.com.my>
Shawn Kondel <shawnk@sunfs.math.usu.edu>
Benno <benoit@mathematik.uni-marburg.de>
"Pyne, Jeffrey" <Jeffrey.Pyne@schwab.com>
Nate Itkin ~ <Nate-Itkin@ptdcs2.ra.intel.com>
"Timothy Lindgren" <Timothy_Lindgren@enron.com>
Rachel Polanskis <r.polanskis@nepean.uws.edu.au>
"Matthew Stier" <Matthew.Stier@tddny.fujitsu.com>



This archive was generated by hypermail 2.1.2 : Fri Sep 28 2001 - 23:13:26 CDT