forked from bryanwb/cookbooks
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
32 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -21,6 +21,7 @@ | |
# - init system Bryan W. Berry (<[email protected]>) | ||
# | ||
|
||
# | ||
# Source LSB function library. | ||
if [ -r /lib/lsb/init-functions ]; then | ||
. /lib/lsb/init-functions | ||
|
@@ -105,7 +106,7 @@ fi | |
if [ $have_tty -eq 1 ]; then | ||
echo "Using CATALINA_BASE: $CATALINA_BASE" | ||
echo "Using CATALINA_HOME: $CATALINA_HOME" | ||
echo "Using CATALINA_TMPDIR: $CATALINA_TMPDIR" | ||
echo "Using CATALINA_TMPDIR: $JVM_TMP" | ||
if [ "$1" = "debug" ] ; then | ||
echo "Using JAVA_HOME: $JAVA_HOME" | ||
else | ||
|
@@ -130,18 +131,17 @@ function start() { | |
touch "$CATALINA_PID" | ||
chown "$TOMCAT_USER":"$TOMCAT_USER" "$CATALINA_PID" | ||
run_java_cmd=$(cat <<EOF | ||
"$_RUNJAVA" "$LOGGING_CONFIG" $JAVA_OPTS $CATALINA_OPTS \ | ||
"$_RUNJAVA" "$LOGGING_CONFIG" $JAVA_OPTS \ | ||
-Djava.endorsed.dirs="$JAVA_ENDORSED_DIRS" -classpath "$CLASSPATH" \ | ||
-Dcatalina.base="$CATALINA_BASE" \ | ||
-Dcatalina.home="$CATALINA_HOME" \ | ||
-Djava.io.tmpdir="$CATALINA_TMPDIR" \ | ||
-Djava.io.tmpdir="$JVM_TMPDIR" \ | ||
org.apache.catalina.startup.Bootstrap "$@" start \ | ||
>> "$CATALINA_OUT" 2>&1 & | ||
echo \$! > "$CATALINA_PID" | ||
EOF | ||
) | ||
|
||
|
||
pushd $INVOKE_PATH 2>&1 > /dev/null | ||
$SU "$TOMCAT_USER" -c "$run_java_cmd" | ||
popd 2>&1 > /dev/null | ||
|
@@ -159,8 +159,8 @@ function stop() { | |
exit 1 | ||
fi | ||
else | ||
echo "\$CATALINA_PID was set ($CATALINA_PID) but the specified file does not exist. Is Tomcat running? Stop aborted." | ||
exit 1 | ||
echo "\$CATALINA_PID was set ($CATALINA_PID) but the specified file does not exist. Is Tomcat running? Assuming it has stopped and proceeding." | ||
return 0 | ||
fi | ||
fi | ||
stop_java_cmd=$(cat <<EOF | ||
|