Launchd Operations¶
Manage launchd services.
Facts used in these operations: launchd.LaunchdStatus.
launchd.service
¶
Manage the state of systemd managed services.
launchd.service(service: str, running=True, restarted=False, command: str | None=None, **kwargs)
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
- Note:
This operation also inherits all global arguments.