Permalink
Browse files

Change ps to remove invalid BSD option

  • Loading branch information...
1 parent e05c63e commit 6434a840474c6557e5f8c27200610389b1ae96c1 Chris Shepherd committed May 11, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 tasks/tomcat_solr.rake
View
2 tasks/tomcat_solr.rake
@@ -47,7 +47,7 @@ namespace :tomcat do
task :status => :java_env do
@running = if File.exists?(ENV["CATALINA_PID"])
pid = IO.read(ENV["CATALINA_PID"]).to_i
- if `ps --no-headers -p #{pid}`.present?
+ if `ps -p #{pid} | grep -i java`.present?
puts "Tomcat is running"
true
else

0 comments on commit 6434a84

Please sign in to comment.