mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
service.py documentation update for 32084
This commit is contained in:
parent
1afb048801
commit
79086f8f04
1 changed files with 6 additions and 0 deletions
|
@ -276,6 +276,12 @@ def running(name, enable=None, sig=None, init_delay=None, **kwargs):
|
|||
number of seconds after a service has started before returning. Useful
|
||||
for requisite states wherein a dependent state might assume a service
|
||||
has started but is not yet fully initialized.
|
||||
|
||||
.. note::
|
||||
``watch`` can be used with service.running to restart a service when
|
||||
another state changes ( example: a file.managed state that creates the
|
||||
service's config file ). More details regarding ``watch`` can be found
|
||||
in the :doc:`Requisites </ref/states/requisites>` documentation.
|
||||
'''
|
||||
ret = {'name': name,
|
||||
'changes': {},
|
||||
|
|
Loading…
Add table
Reference in a new issue