Provide the service module for the proxy-minion REST sample
Only the 'redbull' service is 'enabled' in the test
New in version 2015.8.1.
Return a list of all available services
New in version 2015.8.0.
CLI Example:
salt '*' service.get_all
Return a list of all available services.
New in version 2015.8.1.
CLI Example:
salt '*' service.list
Restart the specified service with rest_sample
New in version 2015.8.0.
CLI Example:
salt '*' service.restart <service name>
Return whether this service is running.
New in version 2015.8.0.
Start the specified service on the rest_sample
New in version 2015.8.0.
CLI Example:
salt '*' service.start <service name>
Return the status for a service via rest_sample. If the name contains globbing, a dict mapping service name to True/False values is returned.
New in version 2015.8.0.
Changed in version 2018.3.0: The service name can now be a glob (e.g. salt*
)
True if running, False otherwise dict: Maps service name to True if running, False otherwise
CLI Example:
salt '*' service.status <service name>
Stop the specified service on the rest_sample
New in version 2015.8.0.
CLI Example:
salt '*' service.stop <service name>