[plug] Accidental reboot
Brad Campbell
brad at fnarfbargle.com
Thu Nov 1 22:06:41 WST 2012
On 10/05/11 18:27, Nick Bannon wrote:
> On Tue, May 10, 2011 at 03:21:12PM +0800, Brad Campbell wrote:
>> I have a number of machines I routinely use, and a number of virtual
>> machines inside those. I've lost count of the number of times I've
>> run "sudo reboot" thinking I was logged into a guest and taken down
>> the host server.
> [...]
>
> You molly! Yes, it happens, but the best protection against any accidental
> command I've had is to give machines a friendly, unique name which shows
> up in the prompt. (Or Tim's coloured terminals?) "ensor", not "bkmac"
> or "srv.homea".
>
> That and the habit of a slight pause before doing dangerous actions such
> as shutdown, rm, or even cp if you don't have a "cp -i" alias for that.
>
>> [...] Put together a quick /usr/local/bin/reboot
>> #!/bin/bash
>> echo Surprise!
>
> Handy! There's a packaged solution we use at the UCC, in the form of "molly-guard":
>
> http://www.google.com.au/search?q=molly-guard
Just a long-term follow up on this. I've been using it on all my servers
since it was recommended and I can't rate it highly enough. It has
become one of my all time favourite packages.
More information about the plug
mailing list