Skip to content

Commit

Permalink
Remove the notified bit because its a chicken & egg
Browse files Browse the repository at this point in the history
It either needs the file to start the service, or it needs the service to have the file there before starting. We'll do it from fabric most of the time anyways.
  • Loading branch information
ericholscher committed Nov 12, 2010
1 parent 460b6dc commit dab0100
Showing 1 changed file with 15 additions and 15 deletions.
30 changes: 15 additions & 15 deletions cookbooks/main/recipes/readthedocs.rb
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,21 @@

# Gunicorn setup

cookbook_file "/etc/init/readthedocs-gunicorn.conf" do
source "gunicorn.conf"
owner "root"
group "root"
mode 0644
#notifies :restart, resources(:service => "readthedocs-gunicorn")
end

cookbook_file "/etc/init/readthedocs-celery.conf" do
source "celery.conf"
owner "root"
group "root"
mode 0644
#notifies :restart, resources(:service => "readthedocs-celery")
end

service "readthedocs-gunicorn" do
provider Chef::Provider::Service::Upstart
Expand All @@ -54,21 +69,6 @@
action [:enable, :start]
end

cookbook_file "/etc/init/readthedocs-gunicorn.conf" do
source "gunicorn.conf"
owner "root"
group "root"
mode 0644
notifies :restart, resources(:service => "readthedocs-gunicorn")
end

cookbook_file "/etc/init/readthedocs-celery.conf" do
source "celery.conf"
owner "root"
group "root"
mode 0644
notifies :restart, resources(:service => "readthedocs-celery")
end

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

0 comments on commit dab0100

Please sign in to comment.