From 929eb79ce75ccc3841257ce96f12a81b0fbd2ae9 Mon Sep 17 00:00:00 2001 From: GONG Jie Date: Thu, 9 May 2019 16:18:20 +0800 Subject: [PATCH] Add a new return code 17, for activating --- xCAT/postscripts/xcatlib.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/xCAT/postscripts/xcatlib.sh b/xCAT/postscripts/xcatlib.sh index 2c6a3aa44..4c3cf0210 100755 --- a/xCAT/postscripts/xcatlib.sh +++ b/xCAT/postscripts/xcatlib.sh @@ -549,6 +549,8 @@ function checkservicestatus { retcode=1 elif echo $output|grep -E -i "^failed$";then retcode=2 + elif echo $output|grep -E -i "^activating$";then + retcode=17 fi elif [ -n "$svcjob" ];then output=$(initctl status $svcjob)