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:
Remi Bergsma 2015-12-13 11:53:45 +01:00
parent 1597a4c749
commit 636efa2da3
1 changed files with 4 additions and 0 deletions

View File

@ -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
}