Skip to content

Commit

Permalink
replace restart with kill
Browse files Browse the repository at this point in the history
  • Loading branch information
olegsu committed Nov 9, 2022
1 parent 90bd0b6 commit cd313be
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion scripts/remote_replace_cloudbeat.sh
Original file line number Diff line number Diff line change
Expand Up @@ -41,5 +41,7 @@ for P in $(get_agents); do
cp_to_pod $POD $LOCAL_DIR/bundle.tar.gz $BUNDLE_DIR/bundle.tar.gz
fi
echo "Copied all the assets, restarting the agent $POD"
exec_pod $POD "elastic-agent restart"
PID=$(exec_pod $POD "pidof cloudbeat")
exec_pod $POD "kill -9 $PID"
# exec_pod $POD "elastic-agent restart"
done

0 comments on commit cd313be

Please sign in to comment.