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_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