Skip to content

Commit

Permalink
Shuffle upstart tasks so services are known.
Browse files Browse the repository at this point in the history
  • Loading branch information
ericholscher committed Nov 12, 2010
1 parent 477be66 commit 460b6dc
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions cookbooks/main/recipes/readthedocs.rb
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,14 @@
action [:enable, :start]
end

service "readthedocs-celery" do
provider Chef::Provider::Service::Upstart
enabled true
running true
supports :restart => true, :reload => true, :status => true
action [:enable, :start]
end

cookbook_file "/etc/init/readthedocs-gunicorn.conf" do
source "gunicorn.conf"
owner "root"
Expand All @@ -62,14 +70,6 @@
notifies :restart, resources(:service => "readthedocs-celery")
end

service "readthedocs-celery" do
provider Chef::Provider::Service::Upstart
enabled true
running true
supports :restart => true, :reload => true, :status => true
action [:enable, :start]
end

cookbook_file "/home/docs/.bash_profile" do
source "bash_profile"
owner "docs"
Expand Down

0 comments on commit 460b6dc

Please sign in to comment.