method

process

v2.1.0 - Show latest stable - Class: Killer
process(action, pid_path, pattern, keyword)
public

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")