From 8b3b17d555a631083fe6a2002367fe15bed795a9 Mon Sep 17 00:00:00 2001 From: Erich Blume Date: Sat, 14 Mar 2026 10:09:38 -0700 Subject: [PATCH] Review restart-indri doc: fix Caddy/Jellyfin service management, fix docs-preview path handling - Caddy is now a mcquack LaunchAgent, not brew services - Add missing Jellyfin and Caddy to shutdown commands and autostart list - docs-preview: accept paths with or without docs/ prefix Co-Authored-By: Claude Opus 4.6 (1M context) --- docs/how-to/operations/restart-indri.md | 7 +++++-- mise-tasks/docs-preview | 13 ++++++++++--- 2 files changed, 15 insertions(+), 5 deletions(-) diff --git a/docs/how-to/operations/restart-indri.md b/docs/how-to/operations/restart-indri.md index 4a3944f..768ec9a 100644 --- a/docs/how-to/operations/restart-indri.md +++ b/docs/how-to/operations/restart-indri.md @@ -1,6 +1,7 @@ --- title: Restart Indri -modified: 2026-02-10 +modified: 2026-03-14 +last-reviewed: 2026-03-14 tags: - how-to - operations @@ -40,7 +41,9 @@ Native services managed by launchd will stop automatically during macOS shutdown ssh indri 'brew services stop forgejo' # LaunchAgent services +ssh indri 'launchctl unload ~/Library/LaunchAgents/mcquack.eblume.caddy.plist' ssh indri 'launchctl unload ~/Library/LaunchAgents/mcquack.eblume.zot.plist' +ssh indri 'launchctl unload ~/Library/LaunchAgents/mcquack.jellyfin.plist' ssh indri 'launchctl unload ~/Library/LaunchAgents/mcquack.eblume.alloy.plist' ssh indri 'launchctl unload ~/Library/LaunchAgents/mcquack.eblume.borgmatic.plist' ``` @@ -65,7 +68,7 @@ Or if you're at the console, use the Apple menu. After indri boots, most services recover automatically. Only a few things need manual attention. -**What autostarts:** Docker Desktop, brew services (Forgejo, Caddy), and all mcquack LaunchAgent services (Zot, Alloy, Borgmatic, metrics collectors). +**What autostarts:** Docker Desktop, brew services (Forgejo), and all mcquack LaunchAgent services (Caddy, Zot, Jellyfin, Alloy, Borgmatic, metrics collectors). **What needs manual action:** Amphetamine, AutoMounter, and minikube (including its Tailscale serve port). diff --git a/mise-tasks/docs-preview b/mise-tasks/docs-preview index 38c14c3..d9b90ab 100755 --- a/mise-tasks/docs-preview +++ b/mise-tasks/docs-preview @@ -50,9 +50,16 @@ def main( # Normalize: accept with or without .md suffix card_stem = card.removesuffix(".md") - card_file = REPO_ROOT / "docs" / f"{card_stem}.md" - if not card_file.exists(): - console.print(f"[bold red]Card not found:[/bold red] {card_file}") + # Try exact path first (e.g. "docs/how-to/..."), then inside docs/ + exact_file = REPO_ROOT / f"{card_stem}.md" + docs_file = REPO_ROOT / "docs" / f"{card_stem}.md" + if exact_file.exists() and card_stem.startswith("docs/"): + card_stem = card_stem.removeprefix("docs/") + card_file = exact_file + elif docs_file.exists(): + card_file = docs_file + else: + console.print(f"[bold red]Card not found:[/bold red] {docs_file}") raise typer.Exit(code=1) url_path = "/" + card_stem