docker
This commit is contained in:
8
auto-check/docker/stress-test/scripts/temp_start.sh
Normal file
8
auto-check/docker/stress-test/scripts/temp_start.sh
Normal file
@@ -0,0 +1,8 @@
|
||||
TEMP_LOG=/tmp/auto-check-temp.log
|
||||
> "$TEMP_LOG"
|
||||
(while true; do
|
||||
T=$(sensors 2>/dev/null | grep -oP '\+?\d+(\.\d+)?(?=°C)' | head -1)
|
||||
[ -n "$T" ] && echo "$T" >> "$TEMP_LOG"
|
||||
sleep "${AUTOCHECK_TEMP_INTERVAL:-10}"
|
||||
done) &
|
||||
TEMP_PID=$!
|
||||
Reference in New Issue
Block a user