corosync-reopen.in 536 B

1234567891011121314151617
  1. # This logrotate method has two main problems and it's kept only for reference:
  2. # 1. It does fail when corosync is not running (solvable by adding "|| true")
  3. # 2. If (for some reason) cfgtool -L fails, logrotate fails and corosync keeps
  4. # logging into old file. Added "|| true" makes situation even worse
  5. # because logrotate removes file but corosync keeps logging into it.
  6. @LOGDIR@/corosync.log {
  7. missingok
  8. compress
  9. daily
  10. rotate 31
  11. minsize 2048
  12. notifempty
  13. nocreate
  14. postrotate
  15. @SBINDIR@/corosync-cfgtool -L
  16. endscript
  17. }