lusis / chef-logstash

Semi-official Logstash cookbook
Other
271 stars 353 forks source link

Redirect STDOUT to /dev/null on restart by logrotate. #450

Closed stuszynski closed 7 years ago

stuszynski commented 8 years ago

Restarting logstash_server by logrotate postrotate command was outputing a runit status to STDOUT. It makes cron to send a message to root on each daily logrotate.

~# logrotate --force /etc/logrotate.d/logstash_instance
ok: run: logstash_instance: (pid 22421) 0s

This fix redirects STDOUT messages to /dev/null.

martinb3 commented 7 years ago

Hi there! I've recently hopped in to help on this cookbook; if you'd like to rebase this against master, and have us review/merge it, please do so. If this PR is too out of date, and you think it should be closed, please do that as well. Thank you!

martinb3 commented 7 years ago

Rebased and merged in 9ddae226373901faa7a5bb44e6237cc9a54d3fd7.

stuszynski commented 7 years ago

@martinb3 Hi. Sorry, I didn't have a time to reply. Thanks for merging that!