salt.modules.daemontools
daemontools service module. This module will create daemontools type service watcher.
This module is compatible with the service
states, so it can be used to maintain services using the provider
argument:
myservice: service.running: - provider: daemontools
-
Returns
True
if the specified service is available, otherwise returnsFalse
.CLI Example:
salt '*' daemontools.available foo
salt.modules.daemontools.available(name)
-
Return True if the named service is enabled, false otherwise
New in version 2015.5.6.
CLI Example:
salt '*' daemontools.disabled <service name>
salt.modules.daemontools.disabled(name)
-
Return True if the named service is enabled, false otherwise A service is considered enabled if in your service directory: - an executable ./run file exist - a file named "down" does not exist
New in version 2015.5.7.
- name
-
Service name
CLI Example:
salt '*' daemontools.enabled <service name>
salt.modules.daemontools.enabled(name, **kwargs)
-
Calls daemontools.restart() function
CLI Example:
salt '*' daemontools.full_restart <service name>
salt.modules.daemontools.full_restart(name)
-
Return a list of all available services
CLI Example:
salt '*' daemontools.get_all
salt.modules.daemontools.get_all()
-
The inverse of daemontools.available. Returns
True
if the specified service is not available, otherwise returnsFalse
.CLI Example:
salt '*' daemontools.missing foo
salt.modules.daemontools.missing(name)
-
Wrapper for term()
CLI Example:
salt '*' daemontools.reload <service name>
salt.modules.daemontools.reload_(name)
-
Restart service via daemontools. This will stop/start service
CLI Example:
salt '*' daemontools.restart <service name>
salt.modules.daemontools.restart(name)
-
Starts service via daemontools
CLI Example:
salt '*' daemontools.start <service name>
salt.modules.daemontools.start(name)
-
Return the status for a service via daemontools, return pid if running
CLI Example:
salt '*' daemontools.status <service name>
salt.modules.daemontools.status(name, sig=None)
-
Stops service via daemontools
CLI Example:
salt '*' daemontools.stop <service name>
salt.modules.daemontools.stop(name)
-
Send a TERM to service via daemontools
CLI Example:
salt '*' daemontools.term <service name>
salt.modules.daemontools.term(name)
© 2021 SaltStack.
Licensed under the Apache License, Version 2.0.
https://docs.saltproject.io/en/latest/ref/modules/all/salt.modules.daemontools.html