mirror of
https://github.com/Security-Onion-Solutions/securityonion.git
synced 2025-12-06 17:22:49 +01:00
stop both service then start both
This commit is contained in:
@@ -1431,8 +1431,8 @@ salt_checkin() {
|
|||||||
echo " *** Restarting Salt to fix any SSL errors. ***";
|
echo " *** Restarting Salt to fix any SSL errors. ***";
|
||||||
|
|
||||||
local SALT_SERVICES=(\
|
local SALT_SERVICES=(\
|
||||||
"salt-minion" \
|
"salt-master" \
|
||||||
"salt-master"
|
"salt-minion"
|
||||||
)
|
)
|
||||||
local LOOP_COUNT=0
|
local LOOP_COUNT=0
|
||||||
for service in "${SALT_SERVICES[@]}"; do
|
for service in "${SALT_SERVICES[@]}"; do
|
||||||
@@ -1448,7 +1448,11 @@ salt_checkin() {
|
|||||||
sleep 1;
|
sleep 1;
|
||||||
((LOOP_COUNT+=1))
|
((LOOP_COUNT+=1))
|
||||||
done
|
done
|
||||||
|
done
|
||||||
|
|
||||||
|
sleep 5;
|
||||||
|
|
||||||
|
for service in "${SALT_SERVICES[@]}"; do
|
||||||
echo "Starting service $service" >> "$setup_log" 2>&1
|
echo "Starting service $service" >> "$setup_log" 2>&1
|
||||||
systemctl start "$service" >> "$setup_log" 2>&1
|
systemctl start "$service" >> "$setup_log" 2>&1
|
||||||
LOOP_COUNT=0
|
LOOP_COUNT=0
|
||||||
@@ -1461,7 +1465,6 @@ salt_checkin() {
|
|||||||
sleep 1;
|
sleep 1;
|
||||||
((LOOP_COUNT+=1))
|
((LOOP_COUNT+=1))
|
||||||
done
|
done
|
||||||
|
|
||||||
done
|
done
|
||||||
|
|
||||||
#sleep 15;
|
#sleep 15;
|
||||||
|
|||||||
Reference in New Issue
Block a user