ASF Bugzilla – Attachment 37240 Details for
Bug 64430
rotating catalina.out (using named pipe)
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
better patch
catalina.diff (text/plain), 1.67 KB, created by
harald.dunkel
on 2020-05-13 14:41:12 UTC
(
hide
)
Description:
better patch
Filename:
MIME Type:
Creator:
harald.dunkel
Created:
2020-05-13 14:41:12 UTC
Size:
1.67 KB
patch
obsolete
>diff -ur apache-tomcat-8.5.55.orig/bin/catalina.sh apache-tomcat-8.5.55/bin/catalina.sh >--- apache-tomcat-8.5.55.orig/bin/catalina.sh 2020-05-06 00:12:20.000000000 +0200 >+++ apache-tomcat-8.5.55/bin/catalina.sh 2020-05-12 12:56:30.136489563 +0200 >@@ -36,6 +36,14 @@ > # will be redirected. > # Default is $CATALINA_BASE/logs/catalina.out > # >+# CATALINA_OUT_CMD (Optional) Command which will be executed and receive >+# as its stdin the stdout and stderr from the Tomcat java >+# process. If CATALINA_OUT_CMD is set, the value of >+# CATALINA_OUT will be used as a named pipe. >+# No default. >+# Example (all one line) >+# CATALINA_OUT_CMD="/usr/bin/rotatelogs -p /usr/bin/rotatelogs_compress -f $CATALINA_BASE/logs/catalina.out.%Y-%m-%d.log 86400" >+# > # CATALINA_OPTS (Optional) Java runtime options used when the "start", > # "run" or "debug" command is executed. > # Include here and not in JAVA_OPTS all options, that should >@@ -463,7 +471,20 @@ > fi > > shift >- touch "$CATALINA_OUT" >+ if [ -z "$CATALINA_OUT_CMD" ] ; then >+ touch "$CATALINA_OUT" >+ else >+ if [ ! -e "$CATALINA_OUT" ]; then >+ if ! mknod "$CATALINA_OUT" p; then >+ echo "cannot create named pipe $CATALINA_OUT. Start aborted." >+ exit 1 >+ fi >+ elif [ ! -p "$CATALINA_OUT" ]; then >+ echo "$CATALINA_OUT exists and is not a named pipe. Start aborted." >+ exit 1 >+ fi >+ $CATALINA_OUT_CMD <"$CATALINA_OUT" & >+ fi > if [ "$1" = "-security" ] ; then > if [ $have_tty -eq 1 ]; then > echo "Using Security Manager"
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 64430
:
37239
| 37240 |
37242