XX-11383: Patch to always flush alarms and logrotate support