From c68a7e413f7d5a8666422d1c9d075276a6dd8d6b Mon Sep 17 00:00:00 2001 From: Todor Ivanov Date: Wed, 4 Dec 2024 12:40:24 +0100 Subject: [PATCH] Add back non running components to restartComponent Rename compsRunning to comps --- deploy/restartComponent.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/deploy/restartComponent.sh b/deploy/restartComponent.sh index efd4e8ae49..83feed1f36 100755 --- a/deploy/restartComponent.sh +++ b/deploy/restartComponent.sh @@ -13,8 +13,8 @@ DEST_NAME=cms-wmcore-team [[ -z $WMA_INSTALL_DIR ]] && { echo "ERROR: Trying to run without having the full WMAgent environment set!"; exit 1 ;} echo -e "\n###Checking agent logs at: $(date)" -compsRunning=$(manage execute-agent wmcoreD --status |grep -E "Running:[0-9]+" |awk '{print $1}' |awk -F \: '{print $2}') -for comp in $compsRunning; do +comps=$(manage execute-agent wmcoreD --status |awk '{print $1}' |awk -F \: '{print $2}') +for comp in $comps; do COMPLOG=$WMA_INSTALL_DIR/$comp/ComponentLog if [ ! -f $COMPLOG ]; then echo "Not a component or $COMPLOG does not exist"