This post originated from an RSS feed registered with Java Buzz
by Marc Logemann.
Original Post: fast tomcat restart on Unix variants
Feed Title: Logemann Blog
Feed URL: http://www.logemann.org/blojsom/blog/default/?flavor=rss2
Feed Description: Marc's thoughts on Java and more
On my system, i have only one process that has "JavaVM" in the process description and its most likely only on Mac OS X this way. Just use another string like "catalina" or "tomcat" instead of "JavaVM" as skill parameter.
You can call this bash script easily with "exec" Task with Ant. You can use the skill function also on the shell for easy trashing processes by name, just use "skill Safari" to kill Safari Browser. Of course it makes only sense for nun visual processes because otherwise its fast to kill them via GUI.