You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@accumulo.apache.org by dl...@apache.org on 2016/08/15 17:24:50 UTC

accumulo git commit: ACCUMULO-4406: Rotate the logfiles with the instance numbers

Repository: accumulo
Updated Branches:
  refs/heads/ACCUMULO-4406 cd949cd40 -> 9d181295e


ACCUMULO-4406: Rotate the logfiles with the instance numbers


Project: http://git-wip-us.apache.org/repos/asf/accumulo/repo
Commit: http://git-wip-us.apache.org/repos/asf/accumulo/commit/9d181295
Tree: http://git-wip-us.apache.org/repos/asf/accumulo/tree/9d181295
Diff: http://git-wip-us.apache.org/repos/asf/accumulo/diff/9d181295

Branch: refs/heads/ACCUMULO-4406
Commit: 9d181295e29fae98ad046792aec92a6a589e6e96
Parents: cd949cd
Author: Dave Marion <dl...@apache.org>
Authored: Mon Aug 15 13:24:07 2016 -0400
Committer: Dave Marion <dl...@apache.org>
Committed: Mon Aug 15 13:24:07 2016 -0400

----------------------------------------------------------------------
 assemble/bin/start-daemon.sh | 8 ++++++++
 1 file changed, 8 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/accumulo/blob/9d181295/assemble/bin/start-daemon.sh
----------------------------------------------------------------------
diff --git a/assemble/bin/start-daemon.sh b/assemble/bin/start-daemon.sh
index ebf05e5..3e510eb 100755
--- a/assemble/bin/start-daemon.sh
+++ b/assemble/bin/start-daemon.sh
@@ -106,6 +106,10 @@ if [[ "$SERVICE" != "tserver" || $NUM_TSERVERS -eq 1 ]]; then
    OUTFILE="${ACCUMULO_LOG_DIR}/${SERVICE}_1_${LOGHOST}.out"
    ERRFILE="${ACCUMULO_LOG_DIR}/${SERVICE}_1_${LOGHOST}.err"
 
+   # Rotate the .out and .err files
+   rotate_log "$OUTFILE" ${ACCUMULO_NUM_OUT_FILES}
+   rotate_log "$ERRFILE" ${ACCUMULO_NUM_OUT_FILES}
+
    # Fork the process, store the pid
    nohup ${NUMA_CMD} "$COMMAND" "${SERVICE}" --address "${ADDRESS}" >"$OUTFILE" 2>"$ERRFILE" < /dev/null &
    echo $! > ${PID_FILE}
@@ -144,6 +148,10 @@ else
       OUTFILE="${ACCUMULO_LOG_DIR}/${SERVICE}_${t}_${LOGHOST}.out"
       ERRFILE="${ACCUMULO_LOG_DIR}/${SERVICE}_${t}_${LOGHOST}.err"
 
+      # Rotate the .out and .err files
+      rotate_log "$OUTFILE" ${ACCUMULO_NUM_OUT_FILES}
+      rotate_log "$ERRFILE" ${ACCUMULO_NUM_OUT_FILES}
+
       # Fork the process, store the pid
       nohup ${NUMA_CMD} "$COMMAND" "${SERVICE}" --address "${ADDRESS}" >"$OUTFILE" 2>"$ERRFILE" < /dev/null &
       echo $! > ${PID_FILE}