https://bugzilla.novell.com/show_bug.cgi?id=849436
https://bugzilla.novell.com/show_bug.cgi?id=849436#c1
--- Comment #1 from Ruediger Meier 2013-11-07 19:56:20 UTC ---
looks like a bug in logrotate. It calls the postrotate only if the _first_ of
all specified files needs to be rotated.
reproduce like this
/tmp/log/log_a /tmp/log/log_b {
compress
dateext
maxage 365
rotate 99
missingok
notifempty
size +4096k
create
sharedscripts
postrotate
echo "we postrotate here"
endscript
}
## create a small and a large logfile
$ mkdir /tmp/log
$ truncate -s 0 /tmp/log/log_a
$ truncate -s 5M /tmp/log/log_b
$ logrotate --debug --verbose /tmp/logrotate.conf
< does not call postroate >
## make the fist log file also large
$ truncate -s 5M /tmp/log/log_a
< postroate is called >
--
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.