Skip to content

launchd

launchd

Manage launchd services.

service(service, running=True, restarted=False, command=None)

Manage the state of systemd managed services.

  • 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