about summary refs log tree commit homepage
diff options
context:
space:
mode:
authorezmobius <ezmobius@19e92222-5c0b-0410-8929-a290d50e31e9>2008-04-15 06:02:03 +0000
committerezmobius <ezmobius@19e92222-5c0b-0410-8929-a290d50e31e9>2008-04-15 06:02:03 +0000
commitf69f3602b11dc839bb09f8c783b5ec27c54694fd (patch)
treef51d3078b7fe85b11f06518b3dbfdde5061f02a0
parent57ba9369d15a089e37f5b23695a179da70d3d87c (diff)
downloadunicorn-f69f3602b11dc839bb09f8c783b5ec27c54694fd.tar.gz
git-svn-id: svn+ssh://rubyforge.org/var/svn/mongrel/trunk@1003 19e92222-5c0b-0410-8929-a290d50e31e9
-rw-r--r--bin/mongrel_rails5
1 files changed, 2 insertions, 3 deletions
diff --git a/bin/mongrel_rails b/bin/mongrel_rails
index 8bd99e0..83473e5 100644
--- a/bin/mongrel_rails
+++ b/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