Skip to content

Commit

Permalink
Merge pull request #275 from dupuy/upstart-logrotate-postrotate
Browse files Browse the repository at this point in the history
correct logrotate postrotate command for upstart init_style
  • Loading branch information
juliandunn committed Feb 26, 2015
2 parents ab226cf + 29bb034 commit 2c50208
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions attributes/default.rb
Original file line number Diff line number Diff line change
Expand Up @@ -173,6 +173,8 @@
default['chef_client']['log_rotation']['postrotate'] = case node['chef_client']['init_style']
when 'systemd'
'systemctl reload chef-client.service >/dev/null || :'
when 'upstart'
'initctl reload chef-client >/dev/null || :'
else
'/etc/init.d/chef-client reload >/dev/null || :'
end

0 comments on commit 2c50208

Please sign in to comment.