]> git.openstreetmap.org Git - chef.git/blobdiff - cookbooks/chef/templates/default/logrotate.erb
Proxy requests to the prometheus and alertmanager web UIs
[chef.git] / cookbooks / chef / templates / default / logrotate.erb
index d9533959c2917ce26a02bcaf0119bb0c8044829b..ecaf252193d2936a0593060c613927add73a9d89 100644 (file)
@@ -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
 }