X-Git-Url: https://git.openstreetmap.org./chef.git/blobdiff_plain/3a4d52bd4c0f8e6ae7679145846b7bc7845d8ace..0b310e3c9e2fa2f0fb717160677dfc90cbc04df4:/cookbooks/munin/files/default/plugins/passenger_processes diff --git a/cookbooks/munin/files/default/plugins/passenger_processes b/cookbooks/munin/files/default/plugins/passenger_processes index 75a369233..39842a04f 100755 --- a/cookbooks/munin/files/default/plugins/passenger_processes +++ b/cookbooks/munin/files/default/plugins/passenger_processes @@ -1,5 +1,7 @@ #!/usr/bin/env ruby +require "English" + def output_config puts <<-END graph_category passenger @@ -18,7 +20,7 @@ end def output_values status = `/usr/sbin/passenger-status` - unless $?.success? + unless $CHILD_STATUS.success? $stderr.puts "failed executing passenger-status" exit 1 end