blob: 730fb741e8d02b316d35f4ee52164411124c8d46 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
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
}
|