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 returns
False
.
CLI Example:
salt '*' daemontools.available foo
Return True if the named service is enabled, false otherwise
New in version 2015.5.6.
CLI Example:
salt '*' daemontools.disabled <service 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.
Service name
CLI Example:
salt '*' daemontools.enabled <service name>
Calls daemontools.restart() function
CLI Example:
salt '*' daemontools.full_restart <service name>
Return a list of all available services
CLI Example:
salt '*' daemontools.get_all
The inverse of daemontools.available.
Returns True
if the specified service is not available, otherwise returns
False
.
CLI Example:
salt '*' daemontools.missing foo
Wrapper for term()
CLI Example:
salt '*' daemontools.reload <service name>
Restart service via daemontools. This will stop/start service
CLI Example:
salt '*' daemontools.restart <service name>
Starts service via daemontools
CLI Example:
salt '*' daemontools.start <service name>
Return the status for a service via daemontools, return pid if running
CLI Example:
salt '*' daemontools.status <service name>
Stops service via daemontools
CLI Example:
salt '*' daemontools.stop <service name>
Send a TERM to service via daemontools
CLI Example:
salt '*' daemontools.term <service name>