]> git.openstreetmap.org Git - chef.git/blobdiff - cookbooks/chef/templates/default/logrotate.erb
Disable squid_delay_pools munin plugins
[chef.git] / cookbooks / chef / templates / default / logrotate.erb
index 0257a83c307352efba91fdd53533755c728c6b73..21d0eb6aa44cb9a88c8b3e7926cc466d49b48ccd 100644 (file)
@@ -5,6 +5,10 @@
   weekly
   compress
   postrotate
   weekly
   compress
   postrotate
+<% if node[:lsb][:release].to_f >= 15.10 -%>
+       systemctl try-restart chef-client.service
+<% else -%>
        restart chef-client > /dev/null
        restart chef-client > /dev/null
+<% end -%>
   endscript
 }
   endscript
 }