فهرست منبع

Merge pull request #5726 from xwang2713/HPCC_11257_stop_3

HPCC-11257  make 'hpcc-init stop' return 0 instead 3

Reviewed-By: Richard Chapman <rchapman@hpccsystems.com>
Richard Chapman 11 سال پیش
والد
کامیت
34b3ca3b92
1فایلهای تغییر یافته به همراه2 افزوده شده و 2 حذف شده
  1. 2 2
      initfiles/bash/etc/init.d/hpcc_common.in

+ 2 - 2
initfiles/bash/etc/init.d/hpcc_common.in

@@ -538,7 +538,7 @@ stop_component() {
           removePid ${PIDPATH}
           unlock ${LOCKPATH}
        fi
-       return ${RCSTOP}
+       return 0
     fi
     
     stopcmd="${START_STOP_DAEMON} -K -p ${PIDPATH} >> tmp.txt 2>&1"
@@ -579,7 +579,7 @@ stop_component() {
         removePid ${PIDPATH}
         unlock ${LOCKPATH}
         log_success_msg  
-        RCSTOP=3
+        RCSTOP=0
     fi
     return ${RCSTOP}
 }