jicofo: support jicofo log file for tailing (#1632)

pull/1635/head
Aaron van Meerten 1 year ago committed by GitHub
parent 8555fe1c4a
commit 5d05ba2539
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 6
      jicofo/rootfs/etc/services.d/jicofo/run

@ -4,4 +4,8 @@ JAVA_SYS_PROPS="-Djava.util.logging.config.file=/config/logging.properties -Dcon
DAEMON=/usr/share/jicofo/jicofo.sh DAEMON=/usr/share/jicofo/jicofo.sh
DAEMON_DIR=/usr/share/jicofo/ DAEMON_DIR=/usr/share/jicofo/
exec s6-setuidgid jicofo /bin/bash -c "cd $DAEMON_DIR; JAVA_SYS_PROPS=\"$JAVA_SYS_PROPS\" exec $DAEMON" JICOFO_CMD="exec $DAEMON"
[ -n "$JICOFO_LOG_FILE" ] && JICOFO_CMD="$JICOFO_CMD 2>&1 | tee $JICOFO_LOG_FILE"
exec s6-setuidgid jicofo /bin/bash -c "cd $DAEMON_DIR; JAVA_SYS_PROPS=\"$JAVA_SYS_PROPS\" $JICOFO_CMD"

Loading…
Cancel
Save