Skip to content

Commit

Permalink
fix set BOOKIE_LOG_DIR in bkenv.sh file without effects (apache#14725)
Browse files Browse the repository at this point in the history
Co-authored-by: gavingaozhangmin <gavingaozhangmin@didiglobal.com>
  • Loading branch information
gaozhangmin and gavingaozhangmin authored Apr 20, 2022
1 parent e71b98a commit c666fbd
Showing 1 changed file with 10 additions and 5 deletions.
15 changes: 10 additions & 5 deletions bin/pulsar-daemon
Original file line number Diff line number Diff line change
Expand Up @@ -51,11 +51,6 @@ then
. "$PULSAR_HOME/conf/pulsar_env.sh"
fi

PULSAR_LOG_DIR=${PULSAR_LOG_DIR:-"$PULSAR_HOME/logs"}
PULSAR_LOG_APPENDER=${PULSAR_LOG_APPENDER:-"RollingFile"}
PULSAR_STOP_TIMEOUT=${PULSAR_STOP_TIMEOUT:-30}
PULSAR_PID_DIR=${PULSAR_PID_DIR:-$PULSAR_HOME/bin}

if [ $# = 0 ]; then
usage
exit 1
Expand All @@ -75,6 +70,16 @@ shift
command=$1
shift

if [[ "$command" = "bookie" ]]
then
PULSAR_LOG_DIR=${BOOKIE_LOG_DIR:-"$PULSAR_HOME/logs"}
else
PULSAR_LOG_DIR=${PULSAR_LOG_DIR:-"$PULSAR_HOME/logs"}
fi
PULSAR_LOG_APPENDER=${PULSAR_LOG_APPENDER:-"RollingFile"}
PULSAR_STOP_TIMEOUT=${PULSAR_STOP_TIMEOUT:-30}
PULSAR_PID_DIR=${PULSAR_PID_DIR:-$PULSAR_HOME/bin}

case $command in
(broker)
echo "doing $startStop $command ..."
Expand Down

0 comments on commit c666fbd

Please sign in to comment.