incubator-bigtop-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From r..@apache.org
Subject svn commit: r1331608 - /incubator/bigtop/trunk/bigtop-packages/src/common/hadoop/hadoop-httpfs.svc
Date Fri, 27 Apr 2012 21:41:47 GMT
Author: rvs
Date: Fri Apr 27 21:41:47 2012
New Revision: 1331608

URL: http://svn.apache.org/viewvc?rev=1331608&view=rev
Log:
BIGTOP-565. catalina-based services should be really careful with catalina stop

Modified:
    incubator/bigtop/trunk/bigtop-packages/src/common/hadoop/hadoop-httpfs.svc

Modified: incubator/bigtop/trunk/bigtop-packages/src/common/hadoop/hadoop-httpfs.svc
URL: http://svn.apache.org/viewvc/incubator/bigtop/trunk/bigtop-packages/src/common/hadoop/hadoop-httpfs.svc?rev=1331608&r1=1331607&r2=1331608&view=diff
==============================================================================
--- incubator/bigtop/trunk/bigtop-packages/src/common/hadoop/hadoop-httpfs.svc (original)
+++ incubator/bigtop/trunk/bigtop-packages/src/common/hadoop/hadoop-httpfs.svc Fri Apr 27
21:41:47 2012
@@ -61,7 +61,8 @@ cat <<'__EOT__'
 stop() {
   log_success_msg "Stopping ${DESC}: "
   # FIXME: workaround for BIGTOP-537
-  if [ -s $PIDFILE ] ; then
+  checkstatusofproc
+  if [ "$?" = "$STATUS_RUNNING" ] ; then
     su -s /bin/bash $SVC_USER -c "${EXEC_PATH} stop $SLEEP_TIME -force"
     RETVAL=$?
   else



Mime
View raw message