View | Details | Raw Unified | Return to bug 64430
Collapse All | Expand All

(-)apache-tomcat-8.5.55.orig/bin/catalina.sh (-1 / +22 lines)
Lines 36-41 Link Here
36
#                   will be redirected.
36
#                   will be redirected.
37
#                   Default is $CATALINA_BASE/logs/catalina.out
37
#                   Default is $CATALINA_BASE/logs/catalina.out
38
#
38
#
39
#   CATALINA_OUT_CMD (Optional) Command which will be executed and receive
40
#                   as its stdin the stdout and stderr from the Tomcat java
41
#                   process. If CATALINA_OUT_CMD is set, the value of
42
#                   CATALINA_OUT will be used as a named pipe.
43
#                   No default.
44
#                   Example (all one line)
45
#                   CATALINA_OUT_CMD="cronolog $CATALINA_BASE/logs/catalina.%Y-%m-%d.out >/dev/null 2>&1"
46
#
39
#   CATALINA_OPTS   (Optional) Java runtime options used when the "start",
47
#   CATALINA_OPTS   (Optional) Java runtime options used when the "start",
40
#                   "run" or "debug" command is executed.
48
#                   "run" or "debug" command is executed.
41
#                   Include here and not in JAVA_OPTS all options, that should
49
#                   Include here and not in JAVA_OPTS all options, that should
Lines 463-469 Link Here
463
  fi
471
  fi
464
472
465
  shift
473
  shift
466
  touch "$CATALINA_OUT"
474
  if [ -z "$CATALINA_OUT_CMD" ] ; then
475
    touch "$CATALINA_OUT"
476
  else
477
      if [ ! -e "$CATALINA_OUT" ]; then
478
	  if ! mknod "$CATALINA_OUT" p; then
479
	      echo "cannot create named pipe $CATALINA_OUT. Start aborted."
480
	      exit 1
481
	  fi
482
      elif [ ! -p "$CATALINA_OUT" ]; then
483
	  echo "$CATALINA_OUT exists and is not a named pipe. Start aborted."
484
	  exit 1
485
      fi
486
      "$CATALINA_OUT_CMD" <"$CATALINA_OUT" &
487
  fi
467
  if [ "$1" = "-security" ] ; then
488
  if [ "$1" = "-security" ] ; then
468
    if [ $have_tty -eq 1 ]; then
489
    if [ $have_tty -eq 1 ]; then
469
      echo "Using Security Manager"
490
      echo "Using Security Manager"

Return to bug 64430