diff --git a/recipes/_ganglia_install.rb b/recipes/_ganglia_install.rb index 8ad8b126d..7703d39c7 100644 --- a/recipes/_ganglia_install.rb +++ b/recipes/_ganglia_install.rb @@ -143,6 +143,7 @@ # Setup ganglia-web.conf apache config execute "copy ganglia apache conf" do command "cp /etc/ganglia-webfrontend/apache.conf /etc/apache2/sites-enabled/ganglia.conf" + notifies :reload, "service[#{node['cfncluster']['ganglia']['httpd_service']}]", :immediately not_if "test -f /etc/apache2/sites-enabled/ganglia.conf" end diff --git a/recipes/_master_base_config.rb b/recipes/_master_base_config.rb index 296e66725..b2f013a48 100644 --- a/recipes/_master_base_config.rb +++ b/recipes/_master_base_config.rb @@ -150,7 +150,7 @@ end service node['cfncluster']['ganglia']['httpd_service'] do - supports restart: true + supports restart: true, reload: true action %i[enable start] end end