3)
[root@nailgun ~]# service rabbitmq-server rotate-logs
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.
should be:
postrotate /usr/sbin/rabbitmqctl -q rotate_logs
endscript
Folks, please check for master branch, probably you forgot to fix logrotate script. Please check failed test [1]:
1) /github. com/openstack/ fuel-specs/ blob/master/ specs/8. 0/separate- mos-from- centos. rst#rpm- packages- versioning
[root@nailgun ~]# rpm -q --changelog rabbitmq-server
* Wed Mar 16 2016 Alexey Lebedeff <email address hidden> - 3.6.1-3~mos1
- d9a7cc1 Fix systemd issues
- 383e912 Tune 3.6.1 for RHEL and backport some patches
- c389137 Import upstream package for 3.6.1
- b0a8190 Bump version for rebuild
- 66e63bf Merge "Remove postscript, add copytruncate to logrotate." into 8.0
- d231c4a Suffix update for rabbitmq-server * Modification made according to https:/
2) server- 3.6.1-3. el7~mos1. noarch | grep logrotate d/rabbitmq- server d/rabbitmq- server rabbitmq/ *.log {
delaycompress
sharedscripts
/sbin/ service rabbitmq-server rotate-logs > /dev/null
[root@nailgun ~]# rpm -ql rabbitmq-
/etc/logrotate.
[root@nailgun ~]# cat /etc/logrotate.
/var/log/
weekly
missingok
rotate 20
compress
notifempty
postrotate
endscript
}
3)
[root@nailgun ~]# service rabbitmq-server rotate-logs
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.
should be:
/usr/ sbin/rabbitmqct l -q rotate_logs
postrotate
endscript
[1]. https:/ /product- ci.infra. mirantis. net/view/ 9.0_swarm/ job/9.0. system_ test.ubuntu. logrotate/ 51/