[plug] Accidental reboot

Brad Campbell brad at fnarfbargle.com
Tue May 10 18:55:35 WST 2011


On 10/05/11 18:27, Nick Bannon wrote:
>
> 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
>
> Package: molly-guard
> Description: protects machines from accidental shutdowns/reboots
>   The package installs a shell script that overrides the existing
>   shutdown/reboot/halt/poweroff commands and first runs a set of scripts, which
>   all have to exit successfully, before molly-guard invokes the real command.
>   .
>   One of the scripts checks for existing SSH sessions. If any of the four
>   commands are called interactively over an SSH session, the shell script
>   prompts you to enter the name of the host you wish to shut down. This should
>   adequately prevent you from accidental shutdowns and reboots.
>   .
>   This shell script passes through the commands to the respective binaries in
>   /sbin and should thus not get in the way if called non-interactively, or
>   locally.
>
> Nick.

See, it's not just me then :)

Cheers Nick!



More information about the plug mailing list