Skip to content

Commit

Permalink
Don't try to stop ganglia client if it is not running
Browse files Browse the repository at this point in the history
  • Loading branch information
workeitel committed Nov 24, 2015
1 parent d345492 commit 1182422
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions opsworks_ganglia/recipes/client.rb
Original file line number Diff line number Diff line change
Expand Up @@ -33,11 +33,9 @@
package node[:ganglia][:monitor_plugins_package_name]
end

execute 'stop gmond with non-updated configuration' do
command value_for_platform_family(
"rhel" => '/etc/init.d/gmond stop',
"debian" => '/etc/init.d/ganglia-monitor stop'
)
service "gmond" do
service_name value_for_platform_family("rhel" => "gmond", "debian" => "ganglia-monitor")
action :stop
end

# old broken installations have this empty directory
Expand Down

0 comments on commit 1182422

Please sign in to comment.