mirror of
https://github.com/Security-Onion-Solutions/securityonion.git
synced 2025-12-11 11:42:50 +01:00
touch file at start of highstate, just kill salt dont systemctl stop it https://github.com/Security-Onion-Solutions/securityonion/issues/1831
This commit is contained in:
@@ -92,9 +92,7 @@ if [ $CURRENT_TIME -ge $((SYSTEM_START_TIME+$UPTIME_REQ)) ]; then
|
|||||||
log "last highstate completed at `date -d @$LAST_HIGHSTATE_END`" I
|
log "last highstate completed at `date -d @$LAST_HIGHSTATE_END`" I
|
||||||
log "checking if any jobs are running" I
|
log "checking if any jobs are running" I
|
||||||
logCmd "salt-call --local saltutil.running" I
|
logCmd "salt-call --local saltutil.running" I
|
||||||
log "stopping salt-minion service" I
|
log "killing all salt-minion processes" I
|
||||||
logCmd "timeout -k10 -s9 120 systemctl stop salt-minion" I
|
|
||||||
log "killing any leftover salt-minion processes" I
|
|
||||||
logCmd "pkill -9 -ef /usr/bin/salt-minion" I
|
logCmd "pkill -9 -ef /usr/bin/salt-minion" I
|
||||||
log "starting salt-minion service" I
|
log "starting salt-minion service" I
|
||||||
logCmd "systemctl start salt-minion" I
|
logCmd "systemctl start salt-minion" I
|
||||||
|
|||||||
@@ -1,3 +1,6 @@
|
|||||||
|
include:
|
||||||
|
- salt.minion-state-apply-test
|
||||||
|
|
||||||
state-apply-test:
|
state-apply-test:
|
||||||
schedule.present:
|
schedule.present:
|
||||||
- name: salt-minion-state-apply-test
|
- name: salt-minion-state-apply-test
|
||||||
|
|||||||
@@ -1,3 +1,4 @@
|
|||||||
minion-state-apply-test:
|
minion-state-apply-test:
|
||||||
file.touch:
|
file.touch:
|
||||||
- name: /opt/so/log/salt/state-apply-test
|
- name: /opt/so/log/salt/state-apply-test
|
||||||
|
- order: first
|
||||||
Reference in New Issue
Block a user