about summary refs log tree commit homepage
path: root/bin/mongrel_rails
diff options
context:
space:
mode:
Diffstat (limited to 'bin/mongrel_rails')
-rw-r--r--bin/mongrel_rails9
1 files changed, 7 insertions, 2 deletions
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