projects
/
chef.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
732364b
)
Fix restarting of chef-client on Ubuntu 15.10 and newer
author
Tom Hughes
<tom@compton.nu>
Sun, 14 Feb 2016 10:59:51 +0000
(10:59 +0000)
committer
Tom Hughes
<tom@compton.nu>
Sun, 14 Feb 2016 11:04:09 +0000
(11:04 +0000)
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 0257a83c307352efba91fdd53533755c728c6b73..d9533959c2917ce26a02bcaf0119bb0c8044829b 100644
(file)
--- 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
}