private Method

Killer.find_processes_via_grep

There's no documentation for this item.

Source Code

# File commands/process/reaper.rb, line 82
def find_processes_via_grep
  lines = `ps axww -o 'pid command' | grep #{@keyword}`.split(/\n/).
    reject { |line| line =~ /inq|ps axww|grep|spawn-fcgi|spawner|reaper/ }
  lines.map { |line| line[/^\s*(\d+)/, 1].to_i }
end
Comments

Have your say
Please use Textile formatting (click here for a cheat sheet). Use <code/> and <pre/> for code samples.
Click here to login with OpenID to to post comments.