Jira server does not terminate after executing shutdown script
After stopping a JIRA application on Linux, Unix, or OS X via
catalina.sh stop, the java process never terminates.
To assess whether the service is still running, run
ps -A | grep jira.
To kill the java process and stop JIRA,
-force parameter to
catalina.sh stop -force
Still not shutting down properly?
If the above results in an error, such as:
Kill failed: $CATALINA_PID not set
Add the following line of code to the top of your
<JIRA-Installation-Directory>/bin/setenv.shfile (Standalone instance):
CATALINA_PID="<Change this to your preferred location>/id.pid" export CATALINA_PID
Tomcat will automatically write its process id to
id.pidin your specified path and kill its process with the
- In addition to the above, you can try a custom script that runs
shutdown.shfirst before forcing Tomcat to shutdown. This script will sleep 60 seconds then look inside
./id.pidto check if Tomcat is still running. If Tomcat is still running, it will issue a
catalina.sh stop -force.
- Also, here you can find a script which forces the application to shutdown and deletes the lock file in the application home directory. It will look inside
./id.pidfor the process ID and run
catalina.sh stop -forcefor that process.
Both scripts need to be saved in <JIRA install>/bin and assume
id.pidis located in the same location.