Skip to content

Commit

Permalink
Added Kill option
Browse files Browse the repository at this point in the history
  • Loading branch information
pivotal committed Mar 28, 2011
1 parent 6fee671 commit 346ca6a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tasks/tomcat_solr.rake
Expand Up @@ -16,6 +16,10 @@ namespace :tomcat do
end
end

task :kill do
exec("kill -9 $(ps aux | grep java | grep tomcat | grep -v grep | awk '{print $2;}')")
end

desc "Ensure Java environment variables"
task :java_env do
raise "Must have JAVA_HOME defined\nUse: export=JAVA_HOME=/path/to/java/jre" unless ENV["JAVA_HOME"].present?
Expand Down

0 comments on commit 346ca6a

Please sign in to comment.