static public Method

Killer.restart(pid)

Force the (rails) application to restart by sending a +USR2+ signal to the process.

Source Code

# File commands/process/reaper.rb, line 26
def restart(pid)
  `kill -s USR2 #{pid}`
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.