-
Suggestion
-
Resolution: Fixed
-
None
-
None
Bundled Tomcat misses a default value for the CATALINA_PID variable, hence Tomcat doesn't create a pid file which makes it hard for systemd startup scripts to recognize if the Tomcat instance has started up (and respectivele systemd can't tell if Tomcat is still running or was shut down correctly).
Attached is an example code snipped that can be added to apache-tomcat/bin/setenv.sh to make it work:
# set the location of the pid file if [ -z "$CATALINA_PID" ] ; then if [ -n "$CATALINA_BASE" ] ; then CATALINA_PID="$CATALINA_BASE"/work/catalina.pid elif [ -n "$CATALINA_HOME" ] ; then CATALINA_PID="$CATALINA_HOME"/work/catalina.pid fi fi export CATALINA_PID
Form Name |
---|
[CWD-4423] Crowd's Tomcat setenv.sh misses CATALINA_PID variable
Remote Link | Original: This issue links to "Page (Atlassian Documentation)" [ 176021 ] |
Workflow | Original: JAC Suggestion Workflow [ 3388060 ] | New: JAC Suggestion Workflow 3 [ 3629875 ] |
Status | Original: RESOLVED [ 5 ] | New: Closed [ 6 ] |
Workflow | Original: Simplified Crowd Development Workflow v2 [ 1391861 ] | New: JAC Suggestion Workflow [ 3388060 ] |
Issue Type | Original: Improvement [ 4 ] | New: Suggestion [ 10000 ] |
Link | New: This issue relates to CWD-4771 [ CWD-4771 ] |
Remote Link | New: This issue links to "Page (Atlassian Documentation)" [ 176021 ] |
Workflow | Original: Crowd Development Workflow v2 [ 904031 ] | New: Simplified Crowd Development Workflow v2 [ 1391861 ] |
Remote Link | New: This issue links to "Page (Extranet)" [ 170902 ] |
Remote Link | New: This issue links to "Page (Extranet)" [ 170864 ] |
Remote Link | Original: This issue links to "Page (Extranet)" [ 170705 ] |
Remote Link | New: This issue links to "Page (Extranet)" [ 170705 ] |