Subcommands42 subcommands
launchctl bootstrap
Bootstraps a domain or a service into a domain
launchctl bootout
Tears down a domain or removes a service from a domain
launchctl enable
Enables an existing service
launchctl disable
Disables an existing service
launchctl kickstart
Forces an existing service to start
launchctl attach
Attach the system's debugger to a service
launchctl debug
Configures the next invocation of a service for debugging
launchctl kill
Sends a signal to the service instance
launchctl blame
Prints the reason a service is running
launchctl print
Prints a description of a domain or service
launchctl print-cache
Prints information about the service cache
launchctl print-disabled
Prints which services are disabled
launchctl plist
Prints a property list embedded in a binary (targets the Info.plist by default)
launchctl procinfo
Prints port information about a process
launchctl hostinfo
Prints port information about the host
launchctl resolveport
Resolves a port name from a process to an endpoint in launchd
launchctl limit
Reads or modifies launchd's resource limits
launchctl runstats
Prints performance statistics for a service
launchctl examine
Runs the specified analysis tool against launchd in a non-re-entrant manner
launchctl config
Modifies persistent configuration parameters for launchd domains
launchctl dumpstate
Dumps launchd state to stdout
launchctl dumpjpcategory
Dumps the jetsam properties category for all services
launchctl reboot
Initiates a system reboot of the specified type
launchctl load
Recommended alternatives: bootstrap | enable. Bootstraps a service or directory of services
launchctl unload
Recommended alternatives: bootout | disable. Unloads a service or directory of services
launchctl remove
Unloads the specified service name
launchctl list
Lists information about services
launchctl start
Starts the specified service
launchctl stop
Stops the specified service if it is running
launchctl setenv
Sets the specified environment variables for all services within the domain
launchctl unsetenv
Unsets the specified environment variables for all services within the domain
launchctl getenv
Gets the value of an environment variable from within launchd
launchctl bsexec
Execute a program in another process' bootstrap context
launchctl asuser
Execute a program in the bootstrap context of a given user
launchctl submit
Submit a basic job from the command line
launchctl managerpid
Prints the PID of the launchd controlling the session
launchctl manageruid
Prints the UID of the current launchd session
launchctl managername
Prints the name of the current launchd session
launchctl error
Prints a description of an error
launchctl variant
Prints the launchd variant
launchctl version
Prints the launchd version
launchctl help
Prints the usage for a given subcommand