From 8c8759da034490775f32219dff489f507550037e Mon Sep 17 00:00:00 2001 From: tkyaw <1007242+tkyaw@users.noreply.github.com> Date: Thu, 3 Aug 2017 17:29:15 -0400 Subject: [PATCH] Append instead of create log file so that it is possible to logrotate. (#4644) --- examples/bin/node.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/bin/node.sh b/examples/bin/node.sh index cd9c25ddf6d..86a51dc0f74 100644 --- a/examples/bin/node.sh +++ b/examples/bin/node.sh @@ -40,7 +40,7 @@ case $command in fi if [ ! -d "$PID_DIR" ]; then mkdir -p $PID_DIR; fi if [ ! -d "$LOG_DIR" ]; then mkdir -p $LOG_DIR; fi - nohup java `cat $CONF_DIR/$nodeType/jvm.config | xargs` -cp $CONF_DIR/_common:$CONF_DIR/$nodeType:$LIB_DIR/*:$HADOOP_CONF_DIR io.druid.cli.Main server $nodeType > $LOG_DIR/$nodeType.log & + nohup java `cat $CONF_DIR/$nodeType/jvm.config | xargs` -cp $CONF_DIR/_common:$CONF_DIR/$nodeType:$LIB_DIR/*:$HADOOP_CONF_DIR io.druid.cli.Main server $nodeType >> $LOG_DIR/$nodeType.log & nodeType_PID=$! echo $nodeType_PID > $pid echo "Started $nodeType node ($nodeType_PID)"