From 8a76975d8c0d93ba86738e9c436b6c06d0b286c7 Mon Sep 17 00:00:00 2001 From: Wes Date: Tue, 18 Jul 2023 18:43:57 +0000 Subject: [PATCH] Use new agent scripts --- salt/elasticsearch/tools/sbin/so-elastic-clear | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/salt/elasticsearch/tools/sbin/so-elastic-clear b/salt/elasticsearch/tools/sbin/so-elastic-clear index 3b4f5fc62..a6f05e626 100755 --- a/salt/elasticsearch/tools/sbin/so-elastic-clear +++ b/salt/elasticsearch/tools/sbin/so-elastic-clear @@ -74,9 +74,7 @@ fi if [ -z "$DONT_STOP_SERVICES" ]; then # Stop Elastic Agent - for i in $(pgrep elastic-agent | grep -v grep); do - kill -9 $i; - done + /usr/sbin/so-elastic-agent-stop # Check to see if Elastic Fleet, Logstash, Elastalert are running #EF_ENABLED=$(so-status | grep elastic-fleet) @@ -149,5 +147,5 @@ if [ -z "$DONT_STOP_SERVICES" ]; then fi # Start Elastic Agent - /usr/bin/elastic-agent restart + /usr/sbin/so-elastic-agent-restart fi