CentOS - Power Button Behaviour - headless version
My last resolution about power button works only when monitor is connected.
If you have headless server you can use systemd-logind service. By default (in CentOS 8) it do nothing. I've only found:
systemd-logind[1373]: Power key pressed
in /var/log/messages.
To change this behaviour you can modify
/etc/systemd/logind.conf
I've uncommented line
#HandlePowerKey=poweroff
After thins restart service:
systemctl restart systemd-logind
Now power key works on headless Linux server.
Komentarze
Log in or create a user account to comment.