incubator-bigtop-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bm...@apache.org
Subject svn commit: r1308603 - /incubator/bigtop/trunk/bigtop-packages/src/common/flume/flume-node.init
Date Mon, 02 Apr 2012 22:27:39 GMT
Author: bmahe
Date: Mon Apr  2 22:27:38 2012
New Revision: 1308603

URL: http://svn.apache.org/viewvc?rev=1308603&view=rev
Log:
BIGTOP-502. Flume NG init script should pass --name 'agent' instead of --name '<hostname>'

Modified:
    incubator/bigtop/trunk/bigtop-packages/src/common/flume/flume-node.init

Modified: incubator/bigtop/trunk/bigtop-packages/src/common/flume/flume-node.init
URL: http://svn.apache.org/viewvc/incubator/bigtop/trunk/bigtop-packages/src/common/flume/flume-node.init?rev=1308603&r1=1308602&r2=1308603&view=diff
==============================================================================
--- incubator/bigtop/trunk/bigtop-packages/src/common/flume/flume-node.init (original)
+++ incubator/bigtop/trunk/bigtop-packages/src/common/flume/flume-node.init Mon Apr  2 22:27:38
2012
@@ -62,8 +62,8 @@ FLUME_PID_FILE=${FLUME_RUN}/flume-node.p
 install -d -m 0755 -o flume -g flume ${FLUME_RUN} 
 USER=flume
 
-HOSTNAME=`hostname`
-FLUME_NODE_NAME=${FLUME_NODE_NAME:-$HOSTNAME}
+DEFAULT_FLUME_NODE_NAME="agent"
+FLUME_NODE_NAME=${FLUME_NODE_NAME:-${DEFAULT_FLUME_NODE_NAME}}
 
 start() {
   [ -x $exec ] || exit $ERROR_PROGRAM_NOT_INSTALLED



Mime
View raw message