Skip to content

Commit

Permalink
Fix stop ganglia client conditional
Browse files Browse the repository at this point in the history
  • Loading branch information
Christian Requena committed Aug 30, 2013
1 parent 6e7b2f8 commit d666764
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion opsworks_ganglia/recipes/configure-client.rb
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@

execute 'Stop gmond if there is no monitoring master' do
command 'pkill gmond'
only_if { monitoring_master.nil? && 'pgrep gmond' }
only_if { monitoring_master.nil? && system('pgrep gmond') }
end

if node[:opsworks][:instance][:layers].any?{ |layer|
Expand Down

0 comments on commit d666764

Please sign in to comment.