aboutsummaryrefslogtreecommitdiffstats
path: root/railties/lib/commands/process/inspector.rb
diff options
context:
space:
mode:
authorDavid Heinemeier Hansson <david@loudthinking.com>2006-04-28 03:56:30 +0000
committerDavid Heinemeier Hansson <david@loudthinking.com>2006-04-28 03:56:30 +0000
commitb792945e3945c291fe7b7dae85bf0f014a746038 (patch)
tree7768d941798619556e89cbafaab65137abfff3ae /railties/lib/commands/process/inspector.rb
parentde69de10ded1c0d124f974f995ce31fd68b774d2 (diff)
downloadrails-b792945e3945c291fe7b7dae85bf0f014a746038.tar.gz
rails-b792945e3945c291fe7b7dae85bf0f014a746038.tar.bz2
rails-b792945e3945c291fe7b7dae85bf0f014a746038.zip
Added script/process/inspector to do simple process status information on Rails dispatchers keeping pid files in tmp/pids [DHH]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4300 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'railties/lib/commands/process/inspector.rb')
-rw-r--r--railties/lib/commands/process/inspector.rb7
1 files changed, 4 insertions, 3 deletions
diff --git a/railties/lib/commands/process/inspector.rb b/railties/lib/commands/process/inspector.rb
index c723f1199a..8b768f8821 100644
--- a/railties/lib/commands/process/inspector.rb
+++ b/railties/lib/commands/process/inspector.rb
@@ -44,11 +44,12 @@ ARGV.options do |opts|
opts.on <<-EOF
Description:
- Get the lowdown on processes.
+ Displays system information about Rails dispatchers (or other processes that use pid files) through
+ the ps command.
Examples:
- inspector
- inspector -s 'ps -o user,start,majflt,pcpu,vsz -p %s'
+ inspector # default ps on all tmp/pids/dispatch.*.pid files
+ inspector -s 'ps -o user,start,majflt,pcpu,vsz -p %s' # custom ps, %s is where the pid is interleaved
EOF
opts.on(" Options:")