Bourne
Bourne

Reputation: 1927

Where is the RUNNING_PID file written in Play application

I want to understand where the RUNNING_PID file is written in Play application. I know the location where it is written. I wanted to understand at what point when you start the application is the RUNNING_PID file written? Is it written by the JVM process which the shell script starts or by the shell script which starts the application?

Upvotes: 1

Views: 3013

Answers (2)

Alberto Souza
Alberto Souza

Reputation: 95

Sorry, i can't post a comment yet, so my answer goes here. In order to delete the process based on the pid file, you can follow this script:

pid=cat ${PATH_TO}/RUNNING_PID kill $pid

Upvotes: -3

Related Questions