Provide the service module for the proxy-minion SSH sample .. versionadded:: 2015.8.2
Only the 'redbull' service is 'enabled' in the test
Return a list of all available services
CLI Example:
salt '*' service.get_all
Return a list of all available services.
CLI Example:
salt '*' service.list
Restart the specified service with rest_sample
CLI Example:
salt '*' service.restart <service name>
Return whether this service is running.
Start the specified service on the ssh_sample
CLI Example:
salt '*' service.start <service name>
Return the status for a service via ssh_sample. If the name contains globbing, a dict mapping service name to True/False values is returned.
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
CLI Example:
salt '*' service.stop <service name>
Generated on April 30, 2024 at 17:51:03 UTC.
You are viewing docs for the latest stable release, 3007.0. Switch to docs for the previous stable release, 3006.8, or to a recent doc build from the master branch.
© 2024 VMware, Inc. | Privacy Policy