diff options
author | evanweaver <evanweaver@19e92222-5c0b-0410-8929-a290d50e31e9> | 2008-04-17 04:29:44 +0000 |
---|---|---|
committer | evanweaver <evanweaver@19e92222-5c0b-0410-8929-a290d50e31e9> | 2008-04-17 04:29:44 +0000 |
commit | 3129a8ad22810744d426151d56591d933240094f (patch) | |
tree | 2c41dd92561b1da8587f9ed96dc0cd8c4dd5b56a /bin | |
parent | 34d44f3b9cc76974315ca3e5e1800c4771bb7729 (diff) | |
download | unicorn-3129a8ad22810744d426151d56591d933240094f.tar.gz |
git-svn-id: svn+ssh://rubyforge.org/var/svn/mongrel/branches/stable_1-2@1004 19e92222-5c0b-0410-8929-a290d50e31e9
Diffstat (limited to 'bin')
-rw-r--r-- | bin/mongrel_rails | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/bin/mongrel_rails b/bin/mongrel_rails index 5d17466..151a19c 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 |