CLOUDSTACK-9746 system-vm: logrotate config causes critical failures

* rotate both daily and by size by using maxsize in stead of size
* decrease the max size to 10M for rsyslog files
* remove delaycompress for rsyslog files
* increase rotate to 10 for cloud.log
This commit is contained in:
Joakim Sernbrant 2017-02-21 16:39:42 +01:00
parent a13ee852af
commit 5604b4c59e
7 changed files with 9 additions and 11 deletions

View File

@ -4,6 +4,6 @@
rotate 3
compress
dateext
size 10M
maxsize 10M
notifempty
}

View File

@ -15,9 +15,9 @@
# specific language governing permissions and limitations
# under the License.
/var/log/cloud.log {
rotate 4
rotate 10
daily
size 10M
maxsize 10M
missingok
notifempty
compress

View File

@ -1,6 +1,6 @@
/var/log/conntrackd-stats.log {
daily
size 10M
maxsize 10M
rotate 2
missingok
compress

View File

@ -1,6 +1,6 @@
/var/log/dnsmasq.log {
daily
size 10M
maxsize 10M
missingok
rotate 5
notifempty

View File

@ -3,7 +3,7 @@
rotate 5
missingok
notifempty
size 10M
maxsize 10M
postrotate
/bin/kill -HUP `cat /var/run/rsyslog.pid 2> /dev/null` 2> /dev/null || true
endscript

View File

@ -1,6 +1,6 @@
/var/log/ppp-connect-errors {
daily
size 10M
maxsize 10M
rotate 5
missingok
notifempty

View File

@ -2,10 +2,9 @@
{
rotate 7
daily
size 50M
maxsize 10M
missingok
notifempty
delaycompress
compress
postrotate
/usr/sbin/invoke-rc.d rsyslog rotate > /dev/null
@ -27,11 +26,10 @@
{
rotate 10
daily
size 50M
maxsize 10M
missingok
notifempty
compress
delaycompress
sharedscripts
postrotate
/usr/sbin/invoke-rc.d rsyslog rotate > /dev/null