On 19/09/05, Brion Vibber brion@pobox.com wrote:
We've had our main fileserver (zwinger) accidentally rebooted a couple of times during configuration of new servers today, resulting in downtime.
Everybody, PLEEEEEEEASE be careful when rebooting that you're typing in the window you think you are.
We had this problem a few times on the shared server (called 'museum') in our student digs, which was also acting as broadband router. Eventually, my housemate replaced 'halt' and 'reboot' with symlinks to shell scripts, to try and stop it happening again. I guess if you wanted to be *really* sure, you could use some colourful and flashy text to highlight the machine name too...
#!/bin/sh
echo 'Hey!' echo '(This is museum.)' echo -n 'Is this really the computer you want to halt? ' read X
if [ "$X" == "y" -o "$X" == "yes" ]; then echo Very well, halting... /sbin/halt else echo What were you thinking? fi