runit service module
This module is compatible with the service states, so it can be used to maintain services using the provider argument:
myservice:
service:
- running
- provider: runit
Note that the enabled argument is not available with this provider.
Returns True if the specified service is available, otherwise returns False.
CLI Example:
salt '*' runit.available foo
Calls runit.restart() function
CLI Example:
salt '*' runit.full_restart <service name>
Return a list of all available services
CLI Example:
salt '*' runit.get_all
The inverse of runit.available. Returns True if the specified service is not available, otherwise returns False.
CLI Example:
salt '*' runit.missing foo
Send a HUP to service via runit
CLI Example:
salt '*' runit.reload <service name>
Restart service via runit. This will stop/start service
CLI Example:
salt '*' runit.restart <service name>
Starts service via runit
CLI Example:
salt '*' runit.start <service name>
Return the status for a service via runit, return pid if running
CLI Example:
salt '*' runit.status <service name>
Stops service via runit
CLI Example:
salt '*' runit.stop <service name>
Send a TERM to service via runit
CLI Example:
salt '*' runit.term <service name>
Docs for previous releases are available on readthedocs.org.
Latest Salt release: 2015.5.1