Launchd Operations

Manage launchd services.

Facts used in these operations: launchd.LaunchdStatus.


Manage the state of systemd managed services.

launchd.service(service, running=True, restarted=False, command=None)
  • service: name of the service to manage
  • running: whether the service should be running
  • restarted: whether the service should be restarted
  • command: custom command to pass like: launchctl <command> <service>
  • enabled: whether this service should be enabled/disabled on boot