linux如何取消按power电源按钮键关机
在RedHat AS 4中
[root@nhrhcs1 events]# pwd
/etc/acpi/events
[root@nhrhcs1 events]# vi sample.conf
event=button/power.*
#action=/sbin/shutdown -h now
action=/sbin/shutdown -k
在RedHat AS 5 中
[root@localA events]# vi /etc/acpi/events/power.conf
# ACPID config to power down machine if powerbutton is pressed, but only if
# no gnome-power-manager is running
event=button/power.*
action=/bin/ps awwux | /bin/grep gnome-power-manager | /bin/grep -qv grep || /sbin/shutdown -h now