Re: Killing a process, spawned by another shell script using java
On Wed, Jun 14, 2017 at 12:34 PM, Kavindu Zoysa <[hidden email]> wrote:
I am trying to use a micro service in a test scenario and I need to programmatically start and stop the micro services server. Currently I am using a shell script to start the server with standard java commands and in order to obtain the database connections, I am using a docker container with mysql installed in the test environment. With this approach, need to figure out a way to stop the micro services server.
May be we can use the Microservices Runner to do this programmatically:
One approach is to write a command to take the process id and save it on a text file and use that process id to kill the process using java. Another approach is to use bash commands to kill the process using a shell script.
it will be great to have feedback on which approach to use.