diff --git a/logrotate.cfg b/logrotate.cfg index 38bb9b8..7cbe4df 100644 --- a/logrotate.cfg +++ b/logrotate.cfg @@ -1,4 +1,4 @@ -/root/log.txt { +/root/Logs/*.log { monthly rotate 3 compress @@ -7,6 +7,6 @@ copytruncate dateext postrotate - echo "$(date) Logrotate (log.txt) hat stattgefunden! ERR: $?" >>/root/log.txt + echo "$(date) Logrotate (log.txt) hat stattgefunden! ERR: $?" >>/root/Logs/log.log endscript }