Skip to content
This repository has been archived by the owner on Jul 11, 2020. It is now read-only.

Commit

Permalink
Reduce nginx logs we keep around to 15 days
Browse files Browse the repository at this point in the history
dwradcliffe committed Jun 21, 2015
1 parent 56b1ef6 commit a7c8774
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Berksfile.lock
Original file line number Diff line number Diff line change
@@ -253,7 +253,7 @@ GRAPH
rubygems-backups (0.0.21)
chef-vault (>= 0.0.0)
rubygems-ruby (>= 0.0.0)
rubygems-balancer (0.0.61)
rubygems-balancer (0.0.62)
chef-vault (>= 0.0.0)
datadog (>= 0.0.0)
logrotate (>= 0.0.0)
2 changes: 1 addition & 1 deletion cookbooks/rubygems-balancer/metadata.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name 'rubygems-balancer'

version '0.0.61'
version '0.0.62'

depends 'chef-vault'
depends 'datadog'
2 changes: 1 addition & 1 deletion cookbooks/rubygems-balancer/recipes/logrotate.rb
Original file line number Diff line number Diff line change
@@ -6,7 +6,7 @@
logrotate_app 'nginx' do
path "#{node['nginx']['log_dir']}/*.log"
frequency 'daily'
rotate 30
rotate 15
options %w(missingok compress delaycompress notifempty sharedscripts)
postrotate " [ -f #{node['nginx']['pid']} ] && kill -USR1 `cat #{node['nginx']['pid']}`"
create '0640 www-data adm'

0 comments on commit a7c8774

Please sign in to comment.