]> git.openstreetmap.org Git - chef.git/blobdiff - cookbooks/chef/templates/default/logrotate.erb
Use osmosis 0.47.4 for hourly and daily replication
[chef.git] / cookbooks / chef / templates / default / logrotate.erb
index d9533959c2917ce26a02bcaf0119bb0c8044829b..ecaf252193d2936a0593060c613927add73a9d89 100644 (file)
@@ -5,10 +5,6 @@
   weekly
   compress
   postrotate
   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
 }
   endscript
 }