mirror of
https://github.com/Security-Onion-Solutions/securityonion.git
synced 2025-12-09 02:32:46 +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 "checking if any jobs are running" I
|
||||
logCmd "salt-call --local saltutil.running" I
|
||||
log "stopping salt-minion service" I
|
||||
logCmd "timeout -k10 -s9 120 systemctl stop salt-minion" I
|
||||
log "killing any leftover salt-minion processes" I
|
||||
log "killing all salt-minion processes" I
|
||||
logCmd "pkill -9 -ef /usr/bin/salt-minion" I
|
||||
log "starting salt-minion service" I
|
||||
logCmd "systemctl start salt-minion" I
|
||||
|
||||
@@ -1,3 +1,6 @@
|
||||
include:
|
||||
- salt.minion-state-apply-test
|
||||
|
||||
state-apply-test:
|
||||
schedule.present:
|
||||
- name: salt-minion-state-apply-test
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
minion-state-apply-test:
|
||||
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