https://bugzilla.redhat.com/show_bug.cgi?id=1183690
Bug ID: 1183690 Summary: rabbitmq logrotate script attempts to use legacy service commands Product: Fedora Version: 21 Component: rabbitmq-server Assignee: lemenkov@gmail.com Reporter: lars@redhat.com QA Contact: extras-qa@fedoraproject.org CC: erlang@lists.fedoraproject.org, hubert.plociniczak@gmail.com, jeckersb@redhat.com, lemenkov@gmail.com, rjones@redhat.com, s@shk.io
Description of problem:
The rabbitmq-server package installs /etc/logrotate.d/rabbitmq-server with the following:
postrotate /sbin/service rabbitmq-server rotate-logs > /dev/null endscript
That hasn't work since systemd was introduced, and results in the error:
/etc/cron.daily/logrotate:
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 '
Version-Release number of selected component (if applicable):
rabbitmq-server-3.1.5-10.fc21.noarch