Module for the management of MacOS systems that use launchd/launchctl
depends: |
|
---|
Check that the given service is available.
CLI Example:
salt '*' service.available com.openssh.sshd
Return all installed services
CLI Example:
salt '*' service.get_all
Restart the named service
CLI Example:
salt '*' service.restart <service label>
Start the specified service
CLI Example:
salt '*' service.start <service label>
salt '*' service.start org.ntp.ntpd
salt '*' service.start /System/Library/LaunchDaemons/org.ntp.ntpd.plist
Return the status for a service, returns a bool whether the service is running.
CLI Example:
salt '*' service.status <service label>
Stop the specified service
CLI Example:
salt '*' service.stop <service label>
salt '*' service.stop org.ntp.ntpd
salt '*' service.stop /System/Library/LaunchDaemons/org.ntp.ntpd.plist