about summary refs log tree commit homepage
path: root/projects/mongrel_status/lib/mongrel_status/init.rb
diff options
context:
space:
mode:
Diffstat (limited to 'projects/mongrel_status/lib/mongrel_status/init.rb')
-rw-r--r--projects/mongrel_status/lib/mongrel_status/init.rb32
1 files changed, 0 insertions, 32 deletions
diff --git a/projects/mongrel_status/lib/mongrel_status/init.rb b/projects/mongrel_status/lib/mongrel_status/init.rb
deleted file mode 100644
index cd53dfb..0000000
--- a/projects/mongrel_status/lib/mongrel_status/init.rb
+++ /dev/null
@@ -1,32 +0,0 @@
-require 'mongrel'
-require 'gem_plugin'
-
-
-class Status < GemPlugin::Plugin "/commands"
-  include Mongrel::Command::Base
-  
-  def configure
-    options [
-             ['-c', '--chdir PATH', "Change to dir before starting (will be expanded)", :@cwd, Dir.pwd],
-             ['-P', '--pid FILE', "Where to write the PID", :@pid_file, "log/mongrel.pid"]
-            ]
-  end
-  
-  def validate
-    @cwd = File.expand_path(@cwd)
-    valid_dir? @cwd, "Invalid path to change to during daemon mode: #@cwd"
-    
-    @pid_file = File.join(@cwd,@pid_file)
-    valid_exists? @pid_file, "PID file #@pid_file does not exist. Not running?"
-    
-    return @valid
-  end
-  
-  
-  def run
-    pid = open(@pid_file) {|f| f.read }
-    puts "Mongrel status:"
-    puts "PID: #{pid}"
-  end
-end
-