mirror of
https://github.com/Security-Onion-Solutions/securityonion.git
synced 2025-12-08 10:12:53 +01:00
new state name. no longer need to close stdin, stderr stdout
This commit is contained in:
@@ -42,13 +42,9 @@ install_salt_minion:
|
|||||||
- name: /bin/sh -c '{{ UPGRADECOMMAND }}'
|
- name: /bin/sh -c '{{ UPGRADECOMMAND }}'
|
||||||
|
|
||||||
# minion service is in failed state after upgrade. this command will start it after the state run for the upgrade completes
|
# minion service is in failed state after upgrade. this command will start it after the state run for the upgrade completes
|
||||||
start_minion:
|
start_minion_post_upgrade:
|
||||||
cmd.run:
|
cmd.run:
|
||||||
- name: |
|
- name: nohup /bin/sh -c 'sleep 30; systemctl start salt-minion' &
|
||||||
exec 0>&- # close stdin
|
|
||||||
exec 1>&- # close stdout
|
|
||||||
exec 2>&- # close stderr
|
|
||||||
nohup /bin/sh -c 'sleep 30; systemctl start salt-minion' &
|
|
||||||
- require:
|
- require:
|
||||||
- cmd: install_salt_minion
|
- cmd: install_salt_minion
|
||||||
- watch:
|
- watch:
|
||||||
|
|||||||
Reference in New Issue
Block a user