]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-cookbooks.git/commitdiff
Stops automatically restarting apache2 every run 155/head
authorWalter Huf <walter.huf@corvisa.com>
Mon, 22 Sep 2014 19:46:12 +0000 (14:46 -0500)
committerWalter Huf <walter.huf@corvisa.com>
Mon, 22 Sep 2014 19:48:34 +0000 (14:48 -0500)
I don't know why this is in here, but it's disruptive. Perhaps there was a first-run issue
that needed the restart, so I set up the first-time notifications to restart Apache

recipes/radosgw_apache2.rb

index 9f23e51ae0d4bc0e825fe4eacc67fe703d74aae1..7f8b86b006fcf94841cf99efb8b44a725ac9cefd 100644 (file)
@@ -53,10 +53,12 @@ include_recipe 'apache2'
 
 apache_module 'fastcgi' do
   conf true
+  notifies :restart, 'service[apache2]'
 end
 
 apache_module 'rewrite' do
   conf false
+  notifies :restart, 'service[apache2]'
 end
 
 web_app 'rgw' do
@@ -66,10 +68,6 @@ web_app 'rgw' do
   ceph_rgw_addr node['ceph']['radosgw']['rgw_addr']
 end
 
-service 'apache2' do
-  action :restart
-end
-
 template '/var/www/s3gw.fcgi' do
   source 's3gw.fcgi.erb'
   owner 'root'