Skip to content

Commit

Permalink
bin/firefly: set CATALINA_PID and use 'stop --force' for Tomcat
Browse files Browse the repository at this point in the history
  • Loading branch information
mjuric committed Jun 2, 2015
1 parent b640d7b commit b4b5159
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions bin/firefly
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,10 @@ fi
catalina()
{
# Run catalina.sh with customized JAVA_OPTS, and logging of the output
JAVA_OPTS="-Dport.shutdown=${FFPORTS[1]} -Dport.http=${FFPORTS[0]} $JAVA_OPTS" "$CATALINA_HOME/bin/catalina.sh" "$1" > "$CATALINA_BASE/logs/$1.log"

JAVA_OPTS="-Dport.shutdown=${FFPORTS[1]} -Dport.http=${FFPORTS[0]} $JAVA_OPTS" \
CATALINA_PID="$CATALINA_BASE/logs/catalina.pid" \
"$CATALINA_HOME/bin/catalina.sh" "$@" > "$CATALINA_BASE/logs/$1.log"
}

CATALINA_BASE=
Expand All @@ -66,7 +69,7 @@ cleanup()
{
# Shut down Tomcat
if [[ "$TOMCAT_STARTED" == "1" ]]; then
catalina stop
catalina stop --force
fi

# Delete the temporary Tomcat configuration directory
Expand Down

0 comments on commit b4b5159

Please sign in to comment.