Merge pull request #21410 from PeterS242/develop

Update faq.rst
This commit is contained in:
Joseph Hall 2015-03-08 09:14:50 -06:00
commit 6238c6c8f4

View File

@ -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