Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id D1329200B63 for ; Mon, 15 Aug 2016 18:52:15 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id CFB95160AA7; Mon, 15 Aug 2016 16:52:15 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 22037160A8A for ; Mon, 15 Aug 2016 18:52:14 +0200 (CEST) Received: (qmail 84376 invoked by uid 500); 15 Aug 2016 16:52:14 -0000 Mailing-List: contact commits-help@accumulo.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@accumulo.apache.org Delivered-To: mailing list commits@accumulo.apache.org Received: (qmail 84367 invoked by uid 99); 15 Aug 2016 16:52:14 -0000 Received: from git1-us-west.apache.org (HELO git1-us-west.apache.org) (140.211.11.23) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 15 Aug 2016 16:52:14 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id 2D448DFBA3; Mon, 15 Aug 2016 16:52:14 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: dlmarion@apache.org To: commits@accumulo.apache.org Message-Id: X-Mailer: ASF-Git Admin Mailer Subject: accumulo git commit: ACCUMULO-4406: Add instance number to .out and .err files Date: Mon, 15 Aug 2016 16:52:14 +0000 (UTC) archived-at: Mon, 15 Aug 2016 16:52:16 -0000 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 Authored: Mon Aug 15 12:51:33 2016 -0400 Committer: Dave Marion 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