/etc/apcupsd/apcupsd.confを編集
... UPSCABLE usb ... UPSTYPE usb # DEVICE /dev/ttyS0 DEVICE ... # TIMEOUT 0 TcIMEOUT 60 ...
/etc/default/apcupsdを編集
# Defaults for apcupsd initscript (unused with systemd as init). # Set to "yes" to enable startup of apcupsd. #ISCONFIGURED=no ISCONFIGURED=yes
再起動
# systemctl restart apcupsd.service
状態を確認
# apcaccess status
APC : 001,027,0654 DATE : 2020-12-17 18:02:13 +0900 HOSTNAME : demo1 VERSION : 3.14.14 (31 May 2016) debian UPSNAME : demo1 CABLE : USB Cable DRIVER : USB UPS Driver UPSMODE : Stand Alone STARTTIME: 2020-12-17 17:59:27 +0900 MODEL : Smart-UPS 1500 STATUS : ONLINE BCHARGE : 100.0 Percent TIMELEFT : 45.0 Minutes MBATTCHG : 5 Percent MINTIMEL : 3 Minutes MAXTIME : 60 Seconds ALARMDEL : 30 Seconds BATTV : 27.3 Volts NUMXFERS : 0 TONBATT : 0 Seconds CUMONBATT: 0 Seconds XOFFBATT : N/A STATFLAG : 0x05000008 MANDATE : 2020-08-20 SERIALNO : J12034211463 NOMBATTV : 24.0 Volts FIRMWARE : UPS 09.5 / ID=18 END APC : 2020-12-17 18:02:22 +0900