Like #38, this PR improves the standby check in #37. It will check whether the disk is in the standby mode every 1s by default and change the LED color accordingly.
To enable it, you should do the following things:
# compile the disk standby checker
g++ -std=c++17 -O2 check-standby.cpp -o ugreen-check-standby
# copy the binary file (the path can be changed, see STANDBY_MON_PATH in ugreen-leds.conf)
cp ugreen-check-standby /usr/bin
# copy the new script and restart the service
cp scripts/ugreen-diskiomon /usr/bin
systemctl restart ugreen-diskiomon
Minor changes:
fix the zpool healthy check when the disk is in the standby mode
Like #38, this PR improves the standby check in #37. It will check whether the disk is in the standby mode every 1s by default and change the LED color accordingly.
To enable it, you should do the following things:
Minor changes:
Related issue: #21.