lib/daemonizer/stats.rb in daemonizer-0.4.12 vs lib/daemonizer/stats.rb in daemonizer-0.4.13
- old
+ new
@@ -178,9 +178,10 @@
# # Search by executable name.
# list_processes(:name => 'ruby1.8')
#
# # Search by process name.
# list_processes(:match => 'Passenger FrameworkSpawner')
+
def list_processes(options)
if options[:exe]
name = options[:exe].sub(/.*\/(.*)/, '\1')
if RUBY_PLATFORM =~ /linux/
ps = "ps -C '#{name}'"