Description of problem: Logrotation fails 100% because of old-style post-rotate command Version-Release number of selected component (if applicable): rabbitmq-server-3.1.5-7.el7.noarch How reproducible: 100% Steps to Reproduce: [root@jcentos7-01 tmp]# logrotate -f /etc/logrotate.conf The service command supports only basic LSB actions (start, stop, restart, try-restart, reload, force-reload, status). For other actions, please try to use systemctl. error: error running shared postrotate script for '/var/log/rabbitmq/*.log ' [root@jcentos7-01 tmp]# cat /etc/logrotate.d/rabbitmq-server /var/log/rabbitmq/*.log { weekly missingok rotate 20 compress delaycompress notifempty sharedscripts postrotate /sbin/service rabbitmq-server rotate-logs > /dev/null endscript } [root@jcentos7-01 tmp]# /sbin/service rabbitmq-server rotate-logs > /dev/null The service command supports only basic LSB actions (start, stop, restart, try-restart, reload, force-reload, status). For other actions, please try to use systemctl. [root@jcentos7-01 tmp]# echo $? 2
Looking at the init script from 6, the logroate script should be updated to call: postrotate /usr/sbin/rabbitmqctl -q rotate_logs endscript
I just bumped into this one too. It also affects the current Fedora package (3.4.3-2), and using the "/usr/sbin/rabbitmqctl -q rotate_logs" as suggested above seems to work fine, as it's silent by default.
What about this bug? It's still here after 10 months…
rabbitmq-server-3.3.5-5.el7 has been submitted as an update for Fedora EPEL 7. https://admin.fedoraproject.org/updates/rabbitmq-server-3.3.5-5.el7
rabbitmq-server-3.5.4-2.fc22 has been submitted as an update for Fedora 22. https://admin.fedoraproject.org/updates/rabbitmq-server-3.5.4-2.fc22
Package rabbitmq-server-3.3.5-5.el7: * should fix your issue, * was pushed to the Fedora EPEL 7 testing repository, * should be available at your local mirror within two days. Update it with: # su -c 'yum update --enablerepo=epel-testing rabbitmq-server-3.3.5-5.el7' as soon as you are able to. Please go to the following url: https://admin.fedoraproject.org/updates/FEDORA-EPEL-2015-7568/rabbitmq-server-3.3.5-5.el7 then log in and leave karma (feedback).
rabbitmq-server-3.5.4-2.fc23 has been submitted as an update for Fedora 23. https://admin.fedoraproject.org/updates/rabbitmq-server-3.5.4-2.fc23
rabbitmq-server-3.5.4-2.fc23 has been pushed to the Fedora 23 stable repository. If problems still persist, please make note of it in this bug report.
rabbitmq-server-3.5.4-2.fc22 has been pushed to the Fedora 22 stable repository. If problems still persist, please make note of it in this bug report.
rabbitmq-server-3.3.5-5.el7 has been pushed to the Fedora EPEL 7 stable repository. If problems still persist, please make note of it in this bug report.
*** Bug 1197421 has been marked as a duplicate of this bug. ***