mirror of
https://github.com/valitydev/salt.git
synced 2024-11-08 09:23:56 +00:00
commit
6238c6c8f4
@ -246,7 +246,7 @@ distro the minion is running, in case they differ from the example below.
|
|||||||
- name: atd
|
- name: atd
|
||||||
- enable: True
|
- 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.
|
process.
|
||||||
|
|
||||||
.. code-block:: yaml
|
.. code-block:: yaml
|
||||||
@ -254,7 +254,10 @@ process.
|
|||||||
restart_minion:
|
restart_minion:
|
||||||
cmd.run:
|
cmd.run:
|
||||||
- name: |
|
- 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
|
- python_shell: True
|
||||||
- order: last
|
- order: last
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user