1 |
On Mon, 2007-05-28 at 18:52 +0100, Mick wrote: |
2 |
> Hi All, |
3 |
> |
4 |
> What is the way to send a console warning to anyone logged on a machine before |
5 |
> I reboot it? |
6 |
|
7 |
shutdown(8) does this for you. In addition there is wall(1). |
8 |
|
9 |
> |
10 |
> If the user is logged on a console I will only need to send it to the console; |
11 |
> in addition if the user is running webmin, or phpadmin, then I would really |
12 |
> like a popup of sorts to alert them to log out (something like the net send |
13 |
> command on MS Windows running with the messenger service). |
14 |
> |
15 |
> Is there such a thing? |
16 |
|
17 |
I could give a long explanation on why in practice this never works |
18 |
(even for wall msgs), but it's not interesting. Instead I'll give you |
19 |
some real-world examples of what I've seen. |
20 |
|
21 |
* Don't plan reboots during production or when production is at |
22 |
peak unless absolutely necessary. In the latter case most |
23 |
people will be expecting a reboot because they are aware of a |
24 |
problem that is affecting production. |
25 |
* For small shops, it's just as easy, and more effective, to just |
26 |
go door-to-door letting everyone know there's going to be a |
27 |
reboot. |
28 |
* Nearly every medium-large place I've worked had an overhead |
29 |
speaker system (dunno why, call me lucky) where unexpected |
30 |
crashes and reboots were broadcast. |
31 |
* For planned reboots, one site I worked sent out broadcast emails |
32 |
periodically before a scheduled reboot. There was a monthly |
33 |
schedule sent out as well as an email the week ans shortly |
34 |
before the reboot. This was a multi-platform, nation-wide |
35 |
operation and basically there was no universal way to let |
36 |
everyone know. Even for the single-platform shop I worked at, |
37 |
not everyone (that was affected) sat in front of a terminal. All |
38 |
relevant people or their supervisors were on the mailing list. |
39 |
If you didn't know, you didn't need to know. |
40 |
* Not even the Windows shop I worked at used net send to alert of |
41 |
reboots. Maybe nice idea, but it doesn't work. People are away |
42 |
from their computers, have the messenger service turned off, |
43 |
just click OK without reading the message, etc. etc. All that |
44 |
net send every did in my experience is generate a lot of phone |
45 |
calls from people who didn't understand what it was or what it |
46 |
meant. |
47 |
* The most effective way I've seen was a recent job. They simply |
48 |
announced on the loud speaker for everyone to log off and shut |
49 |
down until further notice. There was no reboot announcement, no |
50 |
explanation. Nothing. Even if a person wasn't affected |
51 |
everyone was told to log out and turn off their machines. This |
52 |
eliminated the phone calls from people asking "does this mean |
53 |
me?" We just had everyone off. For stragglers, VPN users, etc. |
54 |
They were manually disconnected. Let them figure out what |
55 |
happened when they get back. |
56 |
|
57 |
As for webmin and phpadmin users... well those people are |
58 |
administrators... shouldn't they already know? I wouldn't want a fellow |
59 |
admin bouncing a server without tapping me on the shoulder or giving me |
60 |
a call. Technology is rarely a good replacement for common sense. |
61 |
|
62 |
|
63 |
-- |
64 |
Albert W. Hopkins |
65 |
|
66 |
-- |
67 |
gentoo-user@g.o mailing list |