falcon-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ajayyad...@apache.org
Subject falcon git commit: FALCON-1538 Prism status gives wrong info. Contributed by Praveen Adlakha.
Date Tue, 19 Jan 2016 11:57:44 GMT
Repository: falcon
Updated Branches:
  refs/heads/0.9 195b3c1dc -> 2e1887e49


FALCON-1538 Prism status gives wrong info. Contributed by Praveen Adlakha.


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

Branch: refs/heads/0.9
Commit: 2e1887e49460c6181ba090701b50c7770a4eae9d
Parents: 195b3c1
Author: Ajay Yadava <ajaynsit@gmail.com>
Authored: Tue Jan 19 17:25:18 2016 +0530
Committer: Ajay Yadava <ajaynsit@gmail.com>
Committed: Tue Jan 19 17:27:22 2016 +0530

----------------------------------------------------------------------
 CHANGES.txt               | 2 ++
 src/bin/service-status.sh | 5 ++---
 2 files changed, 4 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/falcon/blob/2e1887e4/CHANGES.txt
----------------------------------------------------------------------
diff --git a/CHANGES.txt b/CHANGES.txt
index 775252d..3f28433 100755
--- a/CHANGES.txt
+++ b/CHANGES.txt
@@ -111,6 +111,8 @@ Proposed Release Version: 0.9
   OPTIMIZATIONS
 
   BUG FIXES
+    FALCON-1538 Prism status gives wrong info(Praveen Adlakha via Ajay Yadava)
+
     FALCON-1715 IllegalStateException in MetadataMappingService when entity is scheduled
via native scheduler (Pallavi Rao)
 
     FALCON-1732 Folders not getting deleted after testing (Praveen Adlakha via Pallavi Rao)

http://git-wip-us.apache.org/repos/asf/falcon/blob/2e1887e4/src/bin/service-status.sh
----------------------------------------------------------------------
diff --git a/src/bin/service-status.sh b/src/bin/service-status.sh
index e1aff5e..0fe0fb1 100644
--- a/src/bin/service-status.sh
+++ b/src/bin/service-status.sh
@@ -35,9 +35,8 @@ APP_TYPE=$1
 if [ -f $FALCON_PID_FILE ]; then
   if kill -0 `cat $FALCON_PID_FILE` > /dev/null 2>&1; then
     RESULT=$(${BASEDIR}/bin/falcon admin -status)
-    echo -n $RESULT
-    if [[ $RESULT == "*is running*" ]]; then
-        echo "$APP_TYPE process: `cat $FALCON_PID_FILE`"
+    if [[ $RESULT == *"is running"* ]]; then
+        echo "$APP_TYPE process is running with PID: `cat $FALCON_PID_FILE`"
         exit `cat $FALCON_PID_FILE`
     else
         exit -2


Mime
View raw message