about summary refs log tree commit homepage
path: root/bin
diff options
context:
space:
mode:
authorzedshaw <zedshaw@19e92222-5c0b-0410-8929-a290d50e31e9>2006-12-16 04:26:54 +0000
committerzedshaw <zedshaw@19e92222-5c0b-0410-8929-a290d50e31e9>2006-12-16 04:26:54 +0000
commit0d2428d0f4b82e1872f9b3152145f7e2ad399649 (patch)
tree9e7cb83b438d759f2c51e2f31de07c1ae0c34891 /bin
parent4a3f4095b6f2cb60cb1c798af886dc9bb47d8d66 (diff)
downloadunicorn-0d2428d0f4b82e1872f9b3152145f7e2ad399649.tar.gz
git-svn-id: svn+ssh://rubyforge.org/var/svn/mongrel/trunk@470 19e92222-5c0b-0410-8929-a290d50e31e9
Diffstat (limited to 'bin')
-rw-r--r--bin/mongrel_rails2
1 files changed, 2 insertions, 0 deletions
diff --git a/bin/mongrel_rails b/bin/mongrel_rails
index a59a591..05205cb 100644
--- a/bin/mongrel_rails
+++ b/bin/mongrel_rails
@@ -84,6 +84,8 @@ module Mongrel
         if defaults[:daemon]
           if File.exist? defaults[:pid_file]
             log "!!! PID file #{defaults[:pid_file]} already exists.  Mongrel could be running already.  Check your #{defaults[:log_file]} for errors."
+            log "!!! Exiting with error.  You must stop mongrel and clear the .pid before I'll attempt a start."
+            exit 1
           end
 
           daemonize