accumulo-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dlmar...@apache.org
Subject accumulo git commit: ACCUMULO-4406: Add instance number to .out and .err files
Date Mon, 15 Aug 2016 16:52:14 GMT
Repository: accumulo
Updated Branches:
  refs/heads/ACCUMULO-4406 [created] cd949cd40


ACCUMULO-4406: Add instance number to .out and .err files


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

Branch: refs/heads/ACCUMULO-4406
Commit: cd949cd40e15cb0e3acb8e9292abec95e19f41d1
Parents: 09c3832
Author: Dave Marion <dlmarion@apache.org>
Authored: Mon Aug 15 12:51:33 2016 -0400
Committer: Dave Marion <dlmarion@apache.org>
Committed: Mon Aug 15 12:51:33 2016 -0400

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


http://git-wip-us.apache.org/repos/asf/accumulo/blob/cd949cd4/assemble/bin/start-daemon.sh
----------------------------------------------------------------------
diff --git a/assemble/bin/start-daemon.sh b/assemble/bin/start-daemon.sh
index 4df228e..ebf05e5 100755
--- a/assemble/bin/start-daemon.sh
+++ b/assemble/bin/start-daemon.sh
@@ -103,6 +103,9 @@ if [[ "$SERVICE" != "tserver" || $NUM_TSERVERS -eq 1 ]]; then
    fi
    echo "Starting $SERVICE on $HOST"
 
+   OUTFILE="${ACCUMULO_LOG_DIR}/${SERVICE}_1_${LOGHOST}.out"
+   ERRFILE="${ACCUMULO_LOG_DIR}/${SERVICE}_1_${LOGHOST}.err"
+
    # Fork the process, store the pid
    nohup ${NUMA_CMD} "$COMMAND" "${SERVICE}" --address "${ADDRESS}" >"$OUTFILE" 2>"$ERRFILE"
< /dev/null &
    echo $! > ${PID_FILE}
@@ -138,8 +141,11 @@ else
          fi
       fi
 
+      OUTFILE="${ACCUMULO_LOG_DIR}/${SERVICE}_${t}_${LOGHOST}.out"
+      ERRFILE="${ACCUMULO_LOG_DIR}/${SERVICE}_${t}_${LOGHOST}.err"
+
       # Fork the process, store the pid
-      nohup ${NUMA_CMD} "$COMMAND" "${SERVICE}" --address "${ADDRESS}" >"${ACCUMULO_LOG_DIR}/${SERVICE}_${LOGHOST}.out"
2>"${ACCUMULO_LOG_DIR}/${SERVICE}_${LOGHOST}.err" < /dev/null &
+      nohup ${NUMA_CMD} "$COMMAND" "${SERVICE}" --address "${ADDRESS}" >"$OUTFILE" 2>"$ERRFILE"
< /dev/null &
       echo $! > ${PID_FILE}
 
    done


Mime
View raw message