X-Git-Url: https://git.openstreetmap.org./chef.git/blobdiff_plain/7b9ec4b60ee39614d1d083d7220e76b07d2b275f..51db68ce3db19e407f230a45d6d351b66bab53a8:/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 0257a83c3..d9533959c 100644 --- a/cookbooks/chef/templates/default/logrotate.erb +++ b/cookbooks/chef/templates/default/logrotate.erb @@ -5,6 +5,10 @@ weekly compress postrotate +<% if node[:lsb][:release].to_f >= 15.10 -%> + systemctl restart chef-client.service +<% else -%> restart chef-client > /dev/null +<% end -%> endscript }