]> git.openstreetmap.org Git - chef.git/blobdiff - cookbooks/munin/files/default/plugins/passenger_processes
Merge remote-tracking branch 'github/pull/79'
[chef.git] / cookbooks / munin / files / default / plugins / passenger_processes
index 75a36923393255f0e482a950997a2f8784291436..39842a04f7585ae1185bfd23ac3fab97d9cba313 100755 (executable)
@@ -1,5 +1,7 @@
 #!/usr/bin/env ruby
 
 #!/usr/bin/env ruby
 
+require "English"
+
 def output_config
   puts <<-END
 graph_category passenger
 def output_config
   puts <<-END
 graph_category passenger
@@ -18,7 +20,7 @@ end
 
 def output_values
   status = `/usr/sbin/passenger-status`
 
 def output_values
   status = `/usr/sbin/passenger-status`
-  unless $?.success?
+  unless $CHILD_STATUS.success?
     $stderr.puts "failed executing passenger-status"
     exit 1
   end
     $stderr.puts "failed executing passenger-status"
     exit 1
   end