s6 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: s6
Note that the enabled
argument is not available with this provider.
codeauthor: | Marek Skrobacki <skrobul@skrobul.com> |
---|
Returns True
if the specified service is available, otherwise returns False
.
CLI Example:
salt '*' s6.available foo
Calls s6.restart() function
CLI Example:
salt '*' s6.full_restart <service name>
Return a list of all available services
CLI Example:
salt '*' s6.get_all
The inverse of s6.available. Returns True
if the specified service is not available, otherwise returns False
.
CLI Example:
salt '*' s6.missing foo
Send a HUP to service via s6
CLI Example:
salt '*' s6.reload <service name>
Restart service via s6. This will stop/start service
CLI Example:
salt '*' s6.restart <service name>
Starts service via s6
CLI Example:
salt '*' s6.start <service name>
Return the status for a service via s6, return pid if running
CLI Example:
salt '*' s6.status <service name>
Stops service via s6
CLI Example:
salt '*' s6.stop <service name>
Send a TERM to service via s6
CLI Example:
salt '*' s6.term <service name>
© 2019 SaltStack.
Licensed under the Apache License, Version 2.0.
https://docs.saltstack.com/en/latest/ref/modules/all/salt.modules.s6.html