/var/log/cinder/cinder-api.log {
- daily
- missingok
- compress
- delaycompress
- notifempty
+ daily
+ missingok
+ compress
+ delaycompress
+ notifempty
+ postrotate
+ if dpkg-vendor --derives-from ubuntu ; then
+ service cinder-api restart >/dev/null 2>&1 || true
+ else
+ invoke-rc.d cinder-api restart >/dev/null 2>&1 || true
+ fi
+ endscript
}
compress
delaycompress
notifempty
+ postrotate
+ if dpkg-vendor --derives-from ubuntu ; then
+ service cinder-backup restart >/dev/null 2>&1 || true
+ else
+ invoke-rc.d cinder-backup restart >/dev/null 2>&1 || true
+ fi
+ endscript
}
/var/log/cinder/cinder-scheduler.log {
- daily
- missingok
- compress
- delaycompress
- notifempty
+ daily
+ missingok
+ compress
+ delaycompress
+ notifempty
+ postrotate
+ if dpkg-vendor --derives-from ubuntu ; then
+ service cinder-scheduler restart >/dev/null 2>&1 || true
+ else
+ invoke-rc.d cinder-scheduler restart >/dev/null 2>&1 || true
+ fi
+ endscript
}
/var/log/cinder/cinder-volume.log {
- daily
- missingok
- compress
- delaycompress
- notifempty
+ daily
+ missingok
+ compress
+ delaycompress
+ notifempty
+ postrotate
+ if dpkg-vendor --derives-from ubuntu ; then
+ service cinder-volume restart >/dev/null 2>&1 || true
+ else
+ invoke-rc.d cinder-volume restart >/dev/null 2>&1 || true
+ fi
+ endscript
}