X-Git-Url: https://git.openstreetmap.org./chef.git/blobdiff_plain/056fcc1243e80fca3c7e181290f887b2b82ed465..4ed87e86c638523d093bc97b32715c4c6a41a70d:/cookbooks/chef/templates/default/logrotate.erb?ds=inline diff --git a/cookbooks/chef/templates/default/logrotate.erb b/cookbooks/chef/templates/default/logrotate.erb index d9533959c..ecaf25219 100644 --- a/cookbooks/chef/templates/default/logrotate.erb +++ b/cookbooks/chef/templates/default/logrotate.erb @@ -5,10 +5,6 @@ weekly compress postrotate -<% if node[:lsb][:release].to_f >= 15.10 -%> - systemctl restart chef-client.service -<% else -%> - restart chef-client > /dev/null -<% end -%> + systemctl try-restart chef-client.service endscript }