about summary refs log tree commit homepage
path: root/bin
diff options
context:
space:
mode:
authorzedshaw <zedshaw@19e92222-5c0b-0410-8929-a290d50e31e9>2006-08-08 09:25:16 +0000
committerzedshaw <zedshaw@19e92222-5c0b-0410-8929-a290d50e31e9>2006-08-08 09:25:16 +0000
commit54465456845ab83a161c9bede172a14988640603 (patch)
treefc58291c276b65370c9865f505377f1ebd3a292e /bin
parentf60b973368e9b03f9002e5750303602173874a4d (diff)
downloadunicorn-54465456845ab83a161c9bede172a14988640603.tar.gz
git-svn-id: svn+ssh://rubyforge.org/var/svn/mongrel/trunk@310 19e92222-5c0b-0410-8929-a290d50e31e9
Diffstat (limited to 'bin')
-rw-r--r--bin/mongrel_rails5
1 files changed, 2 insertions, 3 deletions
diff --git a/bin/mongrel_rails b/bin/mongrel_rails
index d2c7b2b..310ee6e 100644
--- a/bin/mongrel_rails
+++ b/bin/mongrel_rails
@@ -167,7 +167,7 @@ class Stop < GemPlugin::Plugin "/commands"
     options [
       ['-c', '--chdir PATH', "Change to dir before starting (will be expanded)", :@cwd, nil],
       ['-f', '--force', "Force the shutdown.", :@force, false],
-      ['-P', '--pid FILE', "Where to write the PID", :@pid_file, "log/mongrel.pid"]
+      ['-P', '--pid FILE', "Where the PID file is located", :@pid_file, "log/mongrel.pid"]
     ]
   end
 
@@ -175,7 +175,6 @@ class Stop < GemPlugin::Plugin "/commands"
     if @cwd
       @cwd = File.expand_path(@cwd)
       valid_dir? @cwd, "Invalid path to change to during daemon mode: #@cwd"
-      @pid_file = File.join(@cwd,@pid_file)
     end
 
     valid_exists? @pid_file, "PID file #@pid_file does not exist. Not running?"
@@ -202,7 +201,7 @@ class Restart < GemPlugin::Plugin "/commands"
     options [
       ['-c', '--chdir PATH', "Change to dir before starting (will be expanded)", :@cwd, nil],
       ['-s', '--soft', "Do a soft restart rather than a process exit restart", :@soft, false],
-      ['-P', '--pid FILE', "Where to write the PID", :@pid_file, "log/mongrel.pid"]
+      ['-P', '--pid FILE', "Where the PID file is located", :@pid_file, "log/mongrel.pid"]
     ]
   end