Steps:

  1. Create a file setenv.sh in Tomcat/bin folder
  2. Edit this file and set the variable CATALINA_PID with the pid.txt file path.

    Note: pid .txt file created at runtime in Tomcat/bin folder when tomcat gets started.

    CATALINA_PID=/opt/openspecimen/tomcat/bin/pid.txt


  3. When using shutdown.sh, use the option -force



    shutdown.sh -force