UPS 전원이 부족하면 자동으로 셧다운 되게 함
vi /etc/inittab
# When our UPS tells us power has failed, assume we have a few minutes
# of power left. Schedule a shutdown for 2 minutes from now.
# This does, of course, assume you have powerd installed and your
# UPS connected and working correctly.
pf::powerfail:/sbin/shutdown -f -h +2 "Power Failure; System Shutting Down"
#전원이 부족하면 2분뒤에 시스템을 셧다운 시킴
# If power was restored before the shutdown kicked in, cancel it.
pr:12345:powerokwait:/sbin/shutdown -c "Power Restored; Shutdown Cancelled"
#2분안에 충전되면 셧다운 명령어 해지함
서자룡 리눅스8.0 461페이지