logrotate.cfg aktualisiert
This commit is contained in:
@ -1,4 +1,4 @@
|
|||||||
/root/log.txt {
|
/root/Logs/*.log {
|
||||||
monthly
|
monthly
|
||||||
rotate 3
|
rotate 3
|
||||||
compress
|
compress
|
||||||
@ -7,6 +7,6 @@
|
|||||||
copytruncate
|
copytruncate
|
||||||
dateext
|
dateext
|
||||||
postrotate
|
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
|
endscript
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user