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: | :email:`Marek Skrobacki <skrobul@skrobul.com>` |
---|
salt.modules.s6.
available
(name)¶Returns True
if the specified service is available, otherwise returns
False
.
CLI Example:
salt '*' s6.available foo
salt.modules.s6.
full_restart
(name)¶Calls s6.restart() function
CLI Example:
salt '*' s6.full_restart <service name>
salt.modules.s6.
get_all
()¶Return a list of all available services
CLI Example:
salt '*' s6.get_all
salt.modules.s6.
missing
(name)¶The inverse of s6.available.
Returns True
if the specified service is not available, otherwise returns
False
.
CLI Example:
salt '*' s6.missing foo
salt.modules.s6.
reload
(name)¶Send a HUP to service via s6
CLI Example:
salt '*' s6.reload <service name>
salt.modules.s6.
restart
(name)¶Restart service via s6. This will stop/start service
CLI Example:
salt '*' s6.restart <service name>
salt.modules.s6.
start
(name)¶Starts service via s6
CLI Example:
salt '*' s6.start <service name>
salt.modules.s6.
status
(name, sig=None)¶Return the status for a service via s6, return pid if running
CLI Example:
salt '*' s6.status <service name>
salt.modules.s6.
stop
(name)¶Stops service via s6
CLI Example:
salt '*' s6.stop <service name>
salt.modules.s6.
term
(name)¶Send a TERM to service via s6
CLI Example:
salt '*' s6.term <service name>