Re: [Hampshire] Shutting down a server cleanly

Top Page

Reply to this message
Author: James Courtier-Dutton
Date:  
To: Hampshire LUG Discussion List
Subject: Re: [Hampshire] Shutting down a server cleanly
On 19 April 2012 16:06, Chris Dennis <cgdennis@???> wrote:
> Hello folks
>
> I've got a Debian server sitting in an office near some desktop computers,
> so occasionally people press the power button on the server by mistake, and
> it turns itself off.
>
> To avoid that, I've tweaked /etc/acpi/powerbtn-acpi-support.sh, and now it
> ignores the power button.
>
> But that leaves no easy way to turn off the (headless) server other than
> holding the power button for four seconds, which doesn't do the filing
> system any good, or logging in via ssh and running a shutdown command (which
> is inconvenient in this case).
>
> I could probably write a script attached to acpi that detects if the button
> has been pressed three times in quick succession, or something similar.
>
> Before I do that, does anyone know of a similar solution that already
> exists?
>


I find a big sticker right next to the power button saying "DO NOT
SWITCH OFF. Talk to XYZ first." seems to work quite well.
It improves the user interface of the power button.

--
Please post to: Hampshire@???
Web Interface: https://mailman.lug.org.uk/mailman/listinfo/hampshire
LUG URL: http://www.hantslug.org.uk
--------------------------------------------------------------