macOS launchd, Processes and Logs Cheat Sheet¶
Quick-reference guide for managing launchd services, processes, and the unified log on macOS.
List All Loaded Services in Current Session:
Inspect Detailed State of a User Service (PID, Exit Code, Paths, Endpoints):
Inspect Detailed State of a System Service:
Load & Start a User LaunchAgent (~/Library/LaunchAgents/):
Stop & Unload a User LaunchAgent:
Force-Restart (kickstart) a Running Service Without Unloading:
Enable a Service Persistently Across Reboots:
Disable a Service Persistently Across Reboots:
List Homebrew Background Services:
Start, Stop, or Restart a Homebrew Service:
Kill a Process by Exact Name:
Kill Processes Matching a Pattern:
Kill a Process Immediately by PID:
Stream Live Unified System Logs Filtered by Process:
Query Historical Unified System Logs (Last 1 Hour):
Sources & Verification¶
- Built-in manual pages: run
man <command>(for exampleman launchctl)