[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Accidental shutdown



On Wed, May 20, 2009 at 6:52 PM, Daniel Husand <daniel@fnutt.net> wrote:
> On 21.05.2009 01:31, Bhasker C V wrote:
>>
>> Is there a method to prevent accidental powerdown of a linux box ?
>> or atleast alert ?

A shellscript that pauses, outputs machine/system info of the box that
your "rebooting," and asks if this is what you want . . . if 'no',
exit . . . if 'yes', reboot?


>
> leda:~# reboot
> W: molly-guard: SSH session detected!
> Please type in hostname of the machine to reboot: fnutt
> Good thing I asked; I won't reboot leda ...
> W: aborting reboot due to 30-query-hostname exiting with code 1.
>
>
>
> aptitude install molly-guard
>
> --
> Daniel Husand
>
>
> --
> To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org with a subject
> of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
>
>



-- 
www.nealhogan.net          www.lambdaserver.com


Reply to: