The service module for FreeBSD
Check that the given service is available.
CLI Example:
salt '*' service.available sshd
Disable the named service to start at boot
Arguments the same as for enable()
CLI Example:
salt '*' service.disable <service name>
Return True if the named service is enabled, false otherwise
CLI Example:
salt '*' service.disabled <service name>
Enable the named service to start at boot
Config file for managing service. If config value is empty string, then /etc/rc.conf.d/<service> used. See man rc.conf(5) for details.
Also service.config variable can be used to change default.
CLI Example:
salt '*' service.enable <service name>
Return True if the named service is enabled, false otherwise
CLI Example:
salt '*' service.enabled <service name>
Return a list of all available services
CLI Example:
salt '*' service.get_all
Return what services are available but not enabled to start at boot
CLI Example:
salt '*' service.get_disabled
Return what services are set to run on boot
CLI Example:
salt '*' service.get_enabled
Restart the named service
CLI Example:
salt '*' service.reload <service name>
Restart the named service
CLI Example:
salt '*' service.restart <service name>
Start the specified service
CLI Example:
salt '*' service.start <service name>
Return the status for a service (True or False).
CLI Example:
salt '*' service.status <service name>
Stop the specified service
CLI Example:
salt '*' service.stop <service name>