Skip to content

Commit

Permalink
Applied pid dropping patch (1003)
Browse files Browse the repository at this point in the history
  • Loading branch information
davidsmalley authored and luislavena committed Jan 17, 2010
1 parent 01342b8 commit a6971b6
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions bin/mongrel_rails
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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

Expand Down

0 comments on commit a6971b6

Please sign in to comment.