salt.modules.launchctl

### Navigation

- index
- modules |
- next |
- previous |
- « SaltStack.org |
- Documentation home
- Full list of builtin execution modules »

# salt.modules.launchctl

Module for the management of MacOS systems that use launchd/launchctl

`salt.modules.launchctl.` `get_all`()

  Return all installed services

  CLI Example:

      salt '*' service.get_all

`salt.modules.launchctl.` `get_launchctl_data`(job_label, runas=None)

`salt.modules.launchctl.` `restart`(job_label, runas=None)

  Restart the named service

  CLI Example:

      salt '*' service.restart <service name>

`salt.modules.launchctl.` `start`(job_label, runas=None)

  Start the specified service

  CLI Example:

      salt '*' service.start <service name>

`salt.modules.launchctl.` `status`(job_label, runas=None)

  Return the status for a service, returns a bool whether the service is running.

  CLI Example:

      salt '*' service.status <service name>

`salt.modules.launchctl.` `stop`(job_label, runas=None)

  Stop the specified service

  CLI Example:

      salt '*' service.stop <service name>

## Comments

comments powered by Disqus

### Navigation

- index
- modules |
- next |
- previous |
- « SaltStack.org |
- Documentation home
- Full list of builtin execution modules »