diff --git a/scripts/log_ssd_health b/scripts/log_ssd_health index d0e1f4a4b831..3f9d6b22673e 100755 --- a/scripts/log_ssd_health +++ b/scripts/log_ssd_health @@ -1,6 +1,6 @@ #! /bin/bash -timeout 30 smartctl -a /dev/sda > /tmp/smartctl +timeout --foreground 30 smartctl -a /dev/sda > /tmp/smartctl if [ -f /tmp/smartctl ];then logger -f /tmp/smartctl fi