I have a miniature PC here with a large and prominent power button on the front which is easy to bump accidentally.
The system is running CentOS 7 with systemd.
I already know that I can set HandlePowerKey=ignore
in /etc/systems/login.conf
but this disables it entirely.
What is the procedure for addressing this on CentOS?
sleep 5
script before shutdown – don_crissti Nov 27 '18 at 20:34