Skip to content

Commit

Permalink
Change the way to estimate running components
Browse files Browse the repository at this point in the history
  • Loading branch information
todor-ivanov committed Dec 2, 2024
1 parent 15554d3 commit f4f0dc8
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)"
comps=$(ls $WMA_INSTALL_DIR)
for comp in $comps; do
compsRunning=$(manage execute-agent wmcoreD --status |grep -E "Running:[0-9]+" |awk '{print $1}' |awk -F \: '{print $2}')
for comp in $compsRunning; 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 f4f0dc8

Please sign in to comment.