diff options
Diffstat (limited to 'bin')
-rw-r--r-- | bin/mongrel_rails | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/bin/mongrel_rails b/bin/mongrel_rails index e66d99e..1682ae5 100644 --- a/bin/mongrel_rails +++ b/bin/mongrel_rails @@ -113,6 +113,12 @@ class Start < GemPlugin::Plugin "/commands" File.unlink @pid_file if File.exist?(@pid_file) @restart = true } + + trap("INT") { + server.stop + File.unlink @pid_file if File.exist?(@pid_file) + @restart = false + } end # hook up any rails specific plugins |