mirror of
https://github.com/valitydev/salt.git
synced 2024-11-08 01:18:58 +00:00
commit
6238c6c8f4
@ -246,7 +246,7 @@ distro the minion is running, in case they differ from the example below.
|
||||
- name: atd
|
||||
- enable: True
|
||||
|
||||
An alternatvie to using the :program:`atd` daemon is to fork and disown the
|
||||
An alternative to using the :program:`atd` daemon is to fork and disown the
|
||||
process.
|
||||
|
||||
.. code-block:: yaml
|
||||
@ -254,7 +254,10 @@ process.
|
||||
restart_minion:
|
||||
cmd.run:
|
||||
- name: |
|
||||
nohup /bin/sh -c 'sleep 10 && salt-call --local service.restart salt-minion'
|
||||
exec 0>&- # close stdin
|
||||
exec 1>&- # close stdout
|
||||
exec 2>&- # close stderr
|
||||
nohup /bin/sh -c 'sleep 10 && salt-call --local service.restart salt-minion' &
|
||||
- python_shell: True
|
||||
- order: last
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user