Closed ggruening closed 2 years ago
In the case of an incorrect configuration, I find a (=one) clear error message in the log files.
Under certain conditions, the log files are flooded with an infinite number of identical error messages.
Catch the errors in the "infinity" loop, something like:
while true; do if [[ -f ${acme_file_path} ]]; then inotifywait -qq -e modify "${acme_file_path}" if [[ $? -eq 0 ]]; then dump fi fi done
I could provide a pull request later this day if desired.
If the log file rotation is not configured or not configured correctly, every vServer will fill up in a few days and will be in a critical state.
Expected Behavior
In the case of an incorrect configuration, I find a (=one) clear error message in the log files.
Current Behavior
Under certain conditions, the log files are flooded with an infinite number of identical error messages.
Possible Solution
Catch the errors in the "infinity" loop, something like:
I could provide a pull request later this day if desired.
Steps to Reproduce
Why this matters
If the log file rotation is not configured or not configured correctly, every vServer will fill up in a few days and will be in a critical state.