incubator-bigtop-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From r..@apache.org
Subject svn commit: r1338321 - /incubator/bigtop/trunk/bigtop-packages/src/common/zookeeper/install_zookeeper.sh
Date Mon, 14 May 2012 18:07:56 GMT
Author: rvs
Date: Mon May 14 18:07:56 2012
New Revision: 1338321

URL: http://svn.apache.org/viewvc?rev=1338321&view=rev
Log:
BIGTOP-580. a wrapper for the ZooKeeper cleanup script is missing

Modified:
    incubator/bigtop/trunk/bigtop-packages/src/common/zookeeper/install_zookeeper.sh

Modified: incubator/bigtop/trunk/bigtop-packages/src/common/zookeeper/install_zookeeper.sh
URL: http://svn.apache.org/viewvc/incubator/bigtop/trunk/bigtop-packages/src/common/zookeeper/install_zookeeper.sh?rev=1338321&r1=1338320&r2=1338321&view=diff
==============================================================================
--- incubator/bigtop/trunk/bigtop-packages/src/common/zookeeper/install_zookeeper.sh (original)
+++ incubator/bigtop/trunk/bigtop-packages/src/common/zookeeper/install_zookeeper.sh Mon May
14 18:07:56 2012
@@ -149,8 +149,9 @@ env CLASSPATH=\$CLASSPATH /usr/lib/zooke
 EOF
 chmod 755 $wrapper
 
-for bin_wrapper in zookeeper-server zookeeper-server-initialize ; do
-  wrapper=$PREFIX/usr/bin/$bin_wrapper
+for pairs in zkServer.sh/zookeeper-server zkServer-initialize.sh/zookeeper-server-initialize
zkCleanup.sh/zookeeper-server-cleanup ; do
+  wrapper=$PREFIX/usr/bin/`basename $pairs`
+  upstream_script=`dirname $pairs`
   cat > $wrapper <<EOF
 #!/bin/sh
 
@@ -170,7 +171,7 @@ export ZOO_LOG_DIR=/var/log/zookeeper
 export ZOO_LOG4J_PROP=INFO,ROLLINGFILE
 export JVMFLAGS=-Dzookeeper.log.threshold=INFO
 export ZOO_DATADIR_AUTOCREATE_DISABLE=true
-env CLASSPATH=\$CLASSPATH /usr/lib/zookeeper/bin/zkServer${bin_wrapper#zookeeper-server}.sh
"\$@"
+env CLASSPATH=\$CLASSPATH /usr/lib/zookeeper/bin/${upstream_script} "\$@"
 EOF
   chmod 755 $wrapper
 done



Mime
View raw message