Developer Maps 26 macOS Automation Jobs to Regain Control of Runaway launchd Setup
A developer running 26 launchd automation jobs on macOS found it increasingly difficult to track which processes were active or broken, sometimes taking two days to notice failures. To solve this, they built a shell script called env-map.sh that collects system, Claude environment, and project-level data twice daily via scheduled launchd jobs. The script generates Mermaid diagrams and summary tables, writing a snapshot to a Markdown file inside an Obsidian vault. Because the vault is version-controlled via Git, daily overwrites of the environment map automatically create a historical record of changes. The author identified five key launchd pitfalls encountered along the way, including silent process restarts and logs from multiple jobs overwriting each other in the same directory.
This is an AI-generated summary. ShortSingh links to the original source for the complete article.
Discussion (0)
Log in to join the discussion and vote.
Log in