| APCのUPS ES500 を接続する。 |
# yum install apcupsd
------------------------------------
/etc/apcupsd/apcupsd.conを書き換える。
# Note: BATTERYLEVEL, MINUTES, and TIMEOUT work in conjunction, so
# the first that occurs will cause the initation of a shutdown.
#
# If during a power failure, the remaining battery percentage
# (as reported by the UPS) is below or equal to BATTERYLEVEL,
# apcupsd will initiate a system shutdown.
BATTERYLEVEL 20 <-- 5
# If during a power failure, the remaining runtime in minutes
# (as calculated internally by the UPS) is below or equal to MINUTES,
# apcupsd, will initiate a system shutdown.
MINUTES 5 <-- 3
# If during a power failure, the UPS has run on batteries for TIMEOUT
# many seconds or longer, apcupsd will initiate a system shutdown.
# A value of 0 disables this timer.
#
# Note, if you have a Smart UPS, you will most likely want to disable
# this timer by setting it to zero. That way, you UPS will continue
|
yum を使用して apcupsdをインストールする。
その後 confファイルを変更する。バッテリ 残量が20%を下回った場合 または 電源異常が 5分間継続した場合にシャットダウンするように設定する。
でもこの設定はお好みで.. |