X-Git-Url: https://git.openstreetmap.org/chef.git/blobdiff_plain/6b22d311817728bcc482d5954eef2ada03e84eca..e56b4e2f61850c044860cfe4874f8b4429866157:/cookbooks/chef/recipes/server.rb diff --git a/cookbooks/chef/recipes/server.rb b/cookbooks/chef/recipes/server.rb index 31e7d1358..747014f9b 100644 --- a/cookbooks/chef/recipes/server.rb +++ b/cookbooks/chef/recipes/server.rb @@ -65,10 +65,14 @@ execute "chef-server-reconfigure" do group "root" end -service "private-chef-runsvdir" do - provider Chef::Provider::Service::Upstart +systemd_service "chef-server" do + description "Chef server" + after "network.target" + exec_start "/opt/opscode/embedded/bin/runsvdir-start" +end + +service "chef-server" do action [:enable, :start] - supports :status => true, :restart => true, :reload => true end apache_module "alias"