From 25f477099bc025e95e423a713c9f5e3b29b3d4e5 Mon Sep 17 00:00:00 2001 From: zedshaw Date: Tue, 23 May 2006 03:58:37 +0000 Subject: PID file wiping is now stopped, and also allows to run a debug without wiping the PID file. git-svn-id: svn+ssh://rubyforge.org/var/svn/mongrel/trunk@206 19e92222-5c0b-0410-8929-a290d50e31e9 --- bin/mongrel_rails | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'bin') diff --git a/bin/mongrel_rails b/bin/mongrel_rails index b6ba92f..4886e6e 100644 --- a/bin/mongrel_rails +++ b/bin/mongrel_rails @@ -142,8 +142,13 @@ class Start < GemPlugin::Plugin "/commands" config.run config.log "Mongrel available at #{settings[:host]}:#{settings[:port]}" - config.log "Use CTRL-C to stop." if not @daemon - config.write_pid_file + + if not @daemon + config.log "Use CTRL-C to stop." + else + config.write_pid_file + end + config.join if config.needs_restart -- cgit v1.2.3-24-ge0c7