/root/log.txt { monthly rotate 3 compress missingok notifempty copytruncate dateext postrotate echo "$(date) Logrotate (log.txt) hat stattgefunden! ERR: $?" >>/root/log.txt endscript }