Logrotate Error on Ubuntu 14.04 #283
I'm using this cookbook to install RabbitMQ on Ubuntu 14.04
I'm getting this error emailed to my from the server:
The logrotate configuration at etc/logrotate.d/rabbitmq-server is:
There is no file /etc/init.d/rabbitmq-server which is causing the error.
I think the postrotate command should be:
Looks like it's related to the package install rather than this cookbook I think?
If so, should I make a simple custom rabbitmq logrotate recipe or is there something in the current cookbook I can use?
I'm not sure to be honest. It seems we still use Upstart. https://github.com/jjasghar/rabbitmq/blob/master/recipes/default.rb#L74-L84. We need to get this fixed
Yes still an issue - when removing the init.d script we should also be changing the logrotate conf for rabbitmq-server as the one installed by the deb package points to the init.d script to call a rotate_logs command.
I've just submitted a pull request #341 which should resolve this