|
|
|
@ -67,32 +67,32 @@ options:
|
|
|
|
|
|
|
|
|
|
|
|
EXAMPLES = '''
|
|
|
|
EXAMPLES = '''
|
|
|
|
# Example action to start sv dnscache, if not running
|
|
|
|
# Example action to start sv dnscache, if not running
|
|
|
|
- sv:
|
|
|
|
- runit:
|
|
|
|
name: dnscache
|
|
|
|
name: dnscache
|
|
|
|
state: started
|
|
|
|
state: started
|
|
|
|
|
|
|
|
|
|
|
|
# Example action to stop sv dnscache, if running
|
|
|
|
# Example action to stop sv dnscache, if running
|
|
|
|
- sv:
|
|
|
|
- runit:
|
|
|
|
name: dnscache
|
|
|
|
name: dnscache
|
|
|
|
state: stopped
|
|
|
|
state: stopped
|
|
|
|
|
|
|
|
|
|
|
|
# Example action to kill sv dnscache, in all cases
|
|
|
|
# Example action to kill sv dnscache, in all cases
|
|
|
|
- sv:
|
|
|
|
- runit:
|
|
|
|
name: dnscache
|
|
|
|
name: dnscache
|
|
|
|
state: killed
|
|
|
|
state: killed
|
|
|
|
|
|
|
|
|
|
|
|
# Example action to restart sv dnscache, in all cases
|
|
|
|
# Example action to restart sv dnscache, in all cases
|
|
|
|
- sv:
|
|
|
|
- runit:
|
|
|
|
name: dnscache
|
|
|
|
name: dnscache
|
|
|
|
state: restarted
|
|
|
|
state: restarted
|
|
|
|
|
|
|
|
|
|
|
|
# Example action to reload sv dnscache, in all cases
|
|
|
|
# Example action to reload sv dnscache, in all cases
|
|
|
|
- sv:
|
|
|
|
- runit:
|
|
|
|
name: dnscache
|
|
|
|
name: dnscache
|
|
|
|
state: reloaded
|
|
|
|
state: reloaded
|
|
|
|
|
|
|
|
|
|
|
|
# Example using alt sv directory location
|
|
|
|
# Example using alt sv directory location
|
|
|
|
- sv:
|
|
|
|
- runit:
|
|
|
|
name: dnscache
|
|
|
|
name: dnscache
|
|
|
|
state: reloaded
|
|
|
|
state: reloaded
|
|
|
|
service_dir: /run/service
|
|
|
|
service_dir: /run/service
|
|
|
|
|