class method
self.restart
Ruby on Rails 2.2.3
Since v2.2.3 Last seen in v2.2.3Signature
self.restart(pid)
Force the (rails) application to restart by sending a USR2 signal to the process.
Parameters
-
pidreq
Source
# File railties/lib/commands/process/reaper.rb, line 26
def restart(pid)
`kill -s USR2 #{pid}`
end
Defined in railties/lib/commands/process/reaper.rb line 26
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in Killer