More robust

This commit is contained in:
2025-10-05 16:03:51 +02:00
parent 2f8f75dfa1
commit 211d4442e5
5 changed files with 186 additions and 38 deletions

View File

@@ -57,7 +57,7 @@ tail -f /var/log/hdd_temp_monitor.log
|-----------------------|-----------------------------------------------------------------|-----------------------------------------------|
| `MAX_TEMP` | Maximum allowed temperature (°C) before starting shutdown count | `60` |
| `HOT_DURATION` | Consecutive minutes above `MAX_TEMP` before shutdown | `5` |
| `COOL_DURATION` | Consecutive minutes below `MAX_TEMP` required to reset counter | `5` |
| `COOL_RESET_DURATION` | Consecutive minutes below `MAX_TEMP` to reset all counters | `5` |
| `LOG_FILE` | Path to the main log file | `/var/log/hdd_temp_monitor.log` |
| `LOG_ROTATE_COUNT` | Number of log files to keep | `7` |
| `LOG_ROTATE_PERIOD` | Rotation period for logs (`daily` or `weekly`) | `daily` |