Fix comments about cleaning logfiles
This commit is contained in:
parent
30eb210111
commit
81cb710ec4
|
@ -126,7 +126,8 @@ is_disk_support_smart() {
|
||||||
|
|
||||||
## Clean temp files
|
## Clean temp files
|
||||||
### As the Xymon's tmpdir is used to store log files, no need to delete them at
|
### As the Xymon's tmpdir is used to store log files, no need to delete them at
|
||||||
### the end of the script. They will be emptied at the beginning of the next run.
|
### the end of the script. They will be emptied, reused or regenerate (if oldest
|
||||||
|
### than the expected interval) at the next run.
|
||||||
|
|
||||||
}
|
}
|
||||||
## ]]]
|
## ]]]
|
||||||
|
@ -160,6 +161,7 @@ choose_correct_type() {
|
||||||
# Create or empty previous files
|
# Create or empty previous files
|
||||||
true > "${plugin_result}"
|
true > "${plugin_result}"
|
||||||
true > "${plugin_state}"
|
true > "${plugin_state}"
|
||||||
|
## Create or empty previous file only if older than 24h (1440 minutes)
|
||||||
regenerate_if_too_old "${device_list}" 1440
|
regenerate_if_too_old "${device_list}" 1440
|
||||||
regenerate_if_too_old "${drivedb_list}" 1440
|
regenerate_if_too_old "${drivedb_list}" 1440
|
||||||
|
|
||||||
|
@ -284,8 +286,9 @@ $(< "${plugin_state}" cut -c2-)
|
||||||
$(cat "${plugin_result}")
|
$(cat "${plugin_result}")
|
||||||
"
|
"
|
||||||
|
|
||||||
# Clean temp files
|
## Clean temp files
|
||||||
## As the Xymon's tmpdir is used to store log files, no need to delete them at
|
### As the Xymon's tmpdir is used to store log files, no need to delete them at
|
||||||
## the end of the script. They will be emptied at the beginning of the next run.
|
### the end of the script. They will be emptied, reused or regenerate (if oldest
|
||||||
|
### than the expected interval) at the next run.
|
||||||
|
|
||||||
exit 0
|
exit 0
|
||||||
|
|
Loading…
Reference in New Issue