incubator-bigtop-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From plinn...@apache.org
Subject svn commit: r1325587 - /incubator/bigtop/trunk/bigtop-packages/src/deb/hive/service-init.d.tpl
Date Fri, 13 Apr 2012 01:59:09 GMT
Author: plinnell
Date: Fri Apr 13 01:59:08 2012
New Revision: 1325587

URL: http://svn.apache.org/viewvc?rev=1325587&view=rev
Log:
BIGTOP-528-A small patch to give better return codes on Debian for Chef/Puppet

Modified:
    incubator/bigtop/trunk/bigtop-packages/src/deb/hive/service-init.d.tpl

Modified: incubator/bigtop/trunk/bigtop-packages/src/deb/hive/service-init.d.tpl
URL: http://svn.apache.org/viewvc/incubator/bigtop/trunk/bigtop-packages/src/deb/hive/service-init.d.tpl?rev=1325587&r1=1325586&r2=1325587&view=diff
==============================================================================
--- incubator/bigtop/trunk/bigtop-packages/src/deb/hive/service-init.d.tpl (original)
+++ incubator/bigtop/trunk/bigtop-packages/src/deb/hive/service-init.d.tpl Fri Apr 13 01:59:08
2012
@@ -113,9 +113,9 @@ hive_restart() {
 hive_status() {
     echo -n "Checking for service $desc: "
     pidofproc -p $PID_FILE java > /dev/null
-    status=$?
+    $RETVAL
 
-    case "$status" in
+    case "$RETVAL" in
       $STATUS_RUNNING)
         log_success_msg "@HIVE_DAEMON@ is running"
         ;;
@@ -132,7 +132,7 @@ hive_status() {
         log_failure_msg "@HIVE_DAEMON@ status is unknown"
         ;;
     esac
-    return $status
+    return $RETVAL
 }
 
 RETVAL=0



Mime
View raw message