Skip to content

Instantly share code, notes, and snippets.

@haam3r
Created September 26, 2017 14:34
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save haam3r/85e7a813df1613e19dbe15547436b983 to your computer and use it in GitHub Desktop.
Save haam3r/85e7a813df1613e19dbe15547436b983 to your computer and use it in GitHub Desktop.
Restart salt-minion in a state without breaking the state run.
restart_minion:
cmd.run:
- name: |
exec 0>&-
exec 1>&-
exec 2>&-
nohup /bin/sh -c 'sleep 10 && salt-call --local service.restart salt-minion' &
- order: last
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment