Thursday, March 21, 2013

How to kill Tomcat server running from standalone plugin

I have demo application which is running from Grails standalone plugin and wanted to automate deployment from Jenkins. Starting such application is well documented and easy, but there is nothing about stopping it.
After quick digging plugin's code, I found that it has undocumented feature to do it. It creates server on application server port + 1, and as soon as there is connection - shuts server. So if your server port is 8080, this command from same computer will kill server:

telnet localhost 8081

2 comments:

  1. I would strongly recommend them to anyone, and we will definitely work with them again in the future.
    UX design services

    ReplyDelete
  2. We have a varied range of customers with a number of finances and advertising needs.
    San Francisco design studios

    ReplyDelete