simply change the power button function to be programmed to recieve two or more successive presses to "shutdown -r now" - i have done this on gentoo systems in similar environments.
ian
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?
>
>cheers
>
>Chris
>--
>Chris Dennis cgdennis@???
>Fordingbridge, Hampshire, UK
>
>--
>Please post to: Hampshire@???
>Web Interface: https://mailman.lug.org.uk/mailman/listinfo/hampshire
>LUG URL: http://www.hantslug.org.uk
>--------------------------------------------------------------
--
Please post to: Hampshire@???
Web Interface:
https://mailman.lug.org.uk/mailman/listinfo/hampshire
LUG URL:
http://www.hantslug.org.uk
--------------------------------------------------------------