logrotate.cfg aktualisiert
This commit is contained in:
@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user