rabbitmq / chef-cookbook

Development repository for Chef cookbook RabbitMQ
https://supermarket.chef.io/cookbooks/rabbitmq
Apache License 2.0
214 stars 423 forks source link

logrotate_app works only for upstart #550

Open vladzu opened 4 years ago

vladzu commented 4 years ago

Why logrotate is configured only for upstart ?

if node['rabbitmq']['job_control'] == 'upstart' && node['rabbitmq']['manage_service'] ... logrotate_app 'rabbitmq-server' do path node['rabbitmq']['logrotate']['path'] enable node['rabbitmq']['logrotate']['enable'] rotate node['rabbitmq']['logrotate']['rotate'] frequency node['rabbitmq']['logrotate']['frequency'] options node['rabbitmq']['logrotate']['options'] sharedscripts node['rabbitmq']['logrotate']['sharedscripts'] postrotate node['rabbitmq']['logrotate']['postrotate'] end

why this is like that ? and why not to use it for systemd OS's?

michaelklishin commented 4 years ago

Because this cookbook predates systemd or at least its widespread use. Contributions are welcome, this is open source software after all.

On Fri, 13 Mar 2020 at 15:29, Vladimir Zulin-Tarelkin < notifications@github.com> wrote:

Why logrotate is configured only for upstart ?

if node['rabbitmq']['job_control'] == 'upstart' && node['rabbitmq']['manage_service'] ... logrotate_app 'rabbitmq-server' do path node['rabbitmq']['logrotate']['path'] enable node['rabbitmq']['logrotate']['enable'] rotate node['rabbitmq']['logrotate']['rotate'] frequency node['rabbitmq']['logrotate']['frequency'] options node['rabbitmq']['logrotate']['options'] sharedscripts node['rabbitmq']['logrotate']['sharedscripts'] postrotate node['rabbitmq']['logrotate']['postrotate'] end

why this is like that ? and why not to use it for systemd OS's?

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/rabbitmq/chef-cookbook/issues/550, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAAAIQTPWHHKPH3CD3SK5KDRHIRLHANCNFSM4LHBQDOQ .

-- Staff Software Engineer, Pivotal/RabbitMQ

fozboz commented 1 year ago

@michaelklishin What do you think to removing all of the logrotate stuff altogether? IMO a rabbitmq cookbook should install and configure rabbitmq and nothing else.

lukebakken commented 1 year ago

@fozboz makes sense to me. Feel free to open a PR

michaelklishin commented 1 year ago

I agree.