static public Method

Killer.process(action, pid_path, pattern, keyword)

Searches for all processes matching the given keywords, and then invokes a specific action on each of them. This is useful for (e.g.) reloading a set of processes:

Killer.process(:reload, "/tmp/pids", "dispatcher.*.pid")

Source Code

# File commands/process/reaper.rb, line 14
def process(action, pid_path, pattern, keyword)
  new(pid_path, pattern, keyword).process(action)
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.