projects
/
chef.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1362b4f
)
Only restart chef-client after log rotation if it is running
author
Tom Hughes
<tom@compton.nu>
Fri, 21 Oct 2016 17:28:41 +0000
(18:28 +0100)
committer
Tom Hughes
<tom@compton.nu>
Fri, 21 Oct 2016 17:28:41 +0000
(18:28 +0100)
cookbooks/chef/templates/default/logrotate.erb
patch
|
blob
|
history
diff --git
a/cookbooks/chef/templates/default/logrotate.erb
b/cookbooks/chef/templates/default/logrotate.erb
index d9533959c2917ce26a02bcaf0119bb0c8044829b..21d0eb6aa44cb9a88c8b3e7926cc466d49b48ccd 100644
(file)
--- 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 -%>