X-Git-Url: https://git.openstreetmap.org/chef.git/blobdiff_plain/64fb45dc9c7e405de5ce9d4972e2c725126f57d3..df9094f9aca14fa8b8318618964ea216cb2acb91:/cookbooks/chef/recipes/default.rb?ds=sidebyside diff --git a/cookbooks/chef/recipes/default.rb b/cookbooks/chef/recipes/default.rb index 2e2e345a1..35ed0d87e 100644 --- a/cookbooks/chef/recipes/default.rb +++ b/cookbooks/chef/recipes/default.rb @@ -112,7 +112,6 @@ if node[:lsb][:release].to_f >= 15.10 description "Chef client" after "network.target" exec_start "/usr/bin/chef-client -i 1800 -s 20" - success_exit_status 3 restart "on-failure" end else @@ -126,6 +125,9 @@ end service "chef-client" do action [:enable, :start] + if node[:lsb][:release].to_f >= 15.10 + restart_command "systemctl kill --signal=TERM chef-client.service" + end supports :status => true, :restart => true, :reload => true subscribes :restart, "dpkg_package[chef]" subscribes :restart, "template[/etc/init/chef-client.conf]"