HomeClusterLabs Projects

logrotate: Use copytruncate method by default

Description

logrotate: Use copytruncate method by default

The reopen lograte method has two main problems:

  1. It does fail when corosync is not running (solvable by adding "|| true")
  2. If (for some reason, like SELinux) cfgtool -L fails, logrotate fails and corosync keeps logging into old file. Added "|| true" makes situation even worse because logrotate removes file but corosync keeps logging into it.

Solution is to install copytruncate logrotate snip by default (and
keep reopen config file only for reference).

Signed-off-by: Jan Friesse <jfriesse@redhat.com>
Reviewed-by: Christine Caulfield <ccaulfie@redhat.com>

Details

Provenance
jfriesseAuthored on Mar 29 2022, 11:09 AM
Parents
rC1038e4a18fc3: totemconfig: Check uname return value correctly
Branches
Unknown
Tags
Unknown

Event Timeline