mirror of https://github.com/apache/cloudstack.git
CLOUDSTACK-9155 make sure logrotate is effective
Many processes on the VRs log to cloud.log. When logrotate kicks in, the file is rotated but the scripts still write to the old inode (cloud.log.1 after rotate). Tis quickly fills up the tiny log partition. Using 'copytruncate' is a tradeoff, there is a slight change of missing a log entry, but in the old situation we were missing all of them after logrotate.
This commit is contained in:
parent
1597a4c749
commit
636efa2da3
|
|
@ -22,4 +22,8 @@
|
|||
notifempty
|
||||
compress
|
||||
delaycompress
|
||||
# CLOUDSTACK-9155: We cannot tell the processes that are writing to this
|
||||
# file to use the new inode, so instead we copy the original file, truncate
|
||||
# it and keep the same inode.
|
||||
copytruncate
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue