diff options
Diffstat (limited to 'conf/logrotate/corosync-reopen.in')
-rw-r--r-- | conf/logrotate/corosync-reopen.in | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/conf/logrotate/corosync-reopen.in b/conf/logrotate/corosync-reopen.in new file mode 100644 index 0000000..730fb74 --- /dev/null +++ b/conf/logrotate/corosync-reopen.in @@ -0,0 +1,17 @@ +# This logrotate method has two main problems and it's kept only for reference: +# 1. It does fail when corosync is not running (solvable by adding "|| true") +# 2. If (for some reason) 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. +@LOGDIR@/corosync.log { + missingok + compress + daily + rotate 31 + minsize 2048 + notifempty + nocreate + postrotate + @SBINDIR@/corosync-cfgtool -L + endscript +} |