Manage launchd services.Documentation Index
Fetch the complete documentation index at: https://mintlify.com/pyinfra-dev/pyinfra/llms.txt
Use this file to discover all available pages before exploring further.
Powered by Mintlify
Auto-generate your docs
Manage launchd services on macOS
Manage launchd services.Documentation Index
Fetch the complete documentation index at: https://mintlify.com/pyinfra-dev/pyinfra/llms.txt
Use this file to discover all available pages before exploring further.
launchd.servicelaunchd.service(
service,
running=True,
restarted=False,
command=None,
)
from pyinfra.operations import launchd
# Manage a launchd service on macOS
launchd.service(
name="Ensure ssh is running",
service="com.openssh.sshd",
running=True,
)