Systemd Unit Failure

Diagnose a systemd service that fails, flaps or never starts: read Result= and the exit status before any log (203/EXEC is a bad ExecStart path or permission, 217/USER a missing user, 226/NAMESPACE a sandbox directive, the 200-series are setup failures before your code ran), reproduce under the unit's real environment with systemd-run rather than a login shell, check Type= against what the process does, then ordering (After= orders, Wants=/Requires= pull in), then StartLimitBurst and RestartSec. Fix through drop-ins only and prove it with a clean stop/start and a boot-order check. Use for "exits with status=203/EXEC", "start-limit-hit", "works by hand but not under systemctl" or "service keeps restarting". Not for application logic once the process runs (debugging), pods (k8s-triage), timers and cron (scheduled-job-debugging) or running the outage (incident-response).

greenblacked Updated
The twenty-nine plugins: coding, family, gamedev, operations, delivery, security, manager, personal, career, design, llm, data, techdocs, assurance, client-apps

File contents

greenblacked/AI commit 143387876b

Frequently asked questions

npx get-skill add greenblacked/systemd-unit-failure