/var/log/rabbitmq/*.log { weekly missingok rotate 20 compress delaycompress notifempty sharedscripts postrotate pgrep beam.smp >/dev/null && /usr/sbin/rabbitmqctl -q rotate_logs true endscript }