############# centos 7에서 실수로 파워버튼 눌러도 안꺼지게
yum install -y acpid
sed -i --follow-symlinks 's/event=/#event=/g' /etc/acpi/events/powerconf
sed -i --follow-symlinks 's/action=/#action=/g' /etc/acpi/events/powerconf
sed -i --follow-symlinks 's/#HandlePowerKey=poweroff/HandlePowerKey=ignore/g' /etc/systemd/logind.conf
systemctl restart acpid
systemctl restart systemd-logind
acpid 를 삭제하면 아래의 logind.conf만 주석처리 변경하면 됨.