Skip to content

Commit

Permalink
COOK-1974 set service init priority for chef-expander, chef-solr and …
Browse files Browse the repository at this point in the history
…chef-server

This makes sure these services start before chef-client service.
That way after a server reboot the /var/run/chef directory will be
created with chef:chef ownership allowing chef-solr to start correctly.
  • Loading branch information
jeremiahsnapp committed Dec 11, 2012
1 parent d999c00 commit 1e3d4ec
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions recipes/rubygems-install.rb
Expand Up @@ -218,6 +218,9 @@
service svc do
supports :status => true
action [ :enable, :start ]
if platform_family?("debian")
priority("2 3 4 5" => [ "start", "19" ], "0 1 6" => [ "stop", "81" ])
end
end
end

Expand Down

0 comments on commit 1e3d4ec

Please sign in to comment.