X-Git-Url: https://git.openstreetmap.org./chef.git/blobdiff_plain/056fcc1243e80fca3c7e181290f887b2b82ed465..a6b0ce09972cb11aa279a31b4bd28da96e0bc500:/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..21d0eb6aa 100644 --- a/cookbooks/chef/templates/default/logrotate.erb +++ b/cookbooks/chef/templates/default/logrotate.erb @@ -6,7 +6,7 @@ compress postrotate <% if node[:lsb][:release].to_f >= 15.10 -%> - systemctl restart chef-client.service + systemctl try-restart chef-client.service <% else -%> restart chef-client > /dev/null <% end -%>