Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Make mongrel_rails drop the PID file *before* loading the rails frame…

…work... helps monit not freak out

git-svn-id: svn://rubyforge.org/var/svn/mongrel/trunk@1003 19e92222-5c0b-0410-8929-a290d50e31e9
  • Loading branch information...
commit 74290abc9ebd287542b2dcc0133fa41d33e5177b 1 parent 0168a7a
ezmobius authored
Showing with 2 additions and 3 deletions.
  1. +2 −3 bin/mongrel_rails
View
5 bin/mongrel_rails
@@ -90,6 +90,7 @@ module Mongrel
end
daemonize
+ write_pid_file
Mongrel.log("Daemonized, any open files are closed. Look at #{defaults[:pid_file]} and #{defaults[:log_file]} for info.")
Mongrel.log("Settings loaded from #{@config_file} (they override command line).") if @config_file
end
@@ -128,9 +129,7 @@ module Mongrel
config.run
Mongrel.log("Mongrel #{Mongrel::Const::MONGREL_VERSION} available at #{@address}:#{@port}")
- if config.defaults[:daemon]
- config.write_pid_file
- else
+ unless config.defaults[:daemon]
Mongrel.log("Use CTRL-C to stop.")
end
Please sign in to comment.
Something went wrong with that request. Please try again.