Merge pull request #10787 from Security-Onion-Solutions/fix/elastic_clear

Use new agent scripts for Elastic clear command
This commit is contained in:
weslambert
2023-07-18 16:15:27 -04:00
committed by GitHub

View File

@@ -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