From a6971b66ab84135ba00ee263dc6ff164a8888376 Mon Sep 17 00:00:00 2001 From: David Smalley Date: Fri, 20 Jun 2008 12:29:44 +0100 Subject: [PATCH] Applied pid dropping patch (1003) --- bin/mongrel_rails | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/bin/mongrel_rails b/bin/mongrel_rails index 7251df0..92e57ab 100644 --- a/bin/mongrel_rails +++ b/bin/mongrel_rails @@ -92,6 +92,7 @@ module Mongrel end daemonize + write_pid_file log "Daemonized, any open files are closed. Look at #{defaults[:pid_file]} and #{defaults[:log_file]} for info." log "Settings loaded from #{@config_file} (they override command line)." if @config_file end @@ -130,9 +131,7 @@ module Mongrel config.run config.log "Mongrel #{Mongrel::Const::MONGREL_VERSION} available at #{@address}:#{@port}" - if config.defaults[:daemon] - config.write_pid_file - else + unless config.defaults[:daemon] config.log "Use CTRL-C to stop." end