nginx logrotate: wrong postrotate command
/etc/logrotate.d/nginx contains
postrotate
/etc/init.d/nginx --quiet --ifstarted reopen
endscript
command.
Actually init.d script doesn’t understand those parameters and does
nothing (no zip file created,logrotate -D —force ends with error).
I replaced it with
/usr/sbin/nginx -s reopen
and it works fine (—quiet and —ifstarted is not recognized).
Regards.
(from redmine: issue id 6106, created on 2016-08-30)