Skip to content

Commit

Permalink
Add back non running components to restartComponent
Browse files Browse the repository at this point in the history
Rename compsRunning to comps
  • Loading branch information
todor-ivanov committed Dec 4, 2024
1 parent 0df84ad commit c68a7e4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions deploy/restartComponent.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit c68a7e4

Please sign in to comment.