mirror of
https://github.com/Security-Onion-Solutions/securityonion.git
synced 2025-12-06 09:12:45 +01:00
Use new agent scripts
This commit is contained in:
@@ -74,9 +74,7 @@ fi
|
|||||||
|
|
||||||
if [ -z "$DONT_STOP_SERVICES" ]; then
|
if [ -z "$DONT_STOP_SERVICES" ]; then
|
||||||
# Stop Elastic Agent
|
# Stop Elastic Agent
|
||||||
for i in $(pgrep elastic-agent | grep -v grep); do
|
/usr/sbin/so-elastic-agent-stop
|
||||||
kill -9 $i;
|
|
||||||
done
|
|
||||||
|
|
||||||
# Check to see if Elastic Fleet, Logstash, Elastalert are running
|
# Check to see if Elastic Fleet, Logstash, Elastalert are running
|
||||||
#EF_ENABLED=$(so-status | grep elastic-fleet)
|
#EF_ENABLED=$(so-status | grep elastic-fleet)
|
||||||
@@ -149,5 +147,5 @@ if [ -z "$DONT_STOP_SERVICES" ]; then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
# Start Elastic Agent
|
# Start Elastic Agent
|
||||||
/usr/bin/elastic-agent restart
|
/usr/sbin/so-elastic-agent-restart
|
||||||
fi
|
fi
|
||||||
|
|||||||
Reference in New Issue
Block a user