Scheduled Job Debugging

Find out why a cron job or systemd timer did not run, ran twice or behaves differently than by hand. Prove it was scheduled and started before touching the script: grep CRON in the journal, systemctl list-timers, systemd-analyze calendar to validate the expression. Then the causes in order: cron's minimal environment (PATH, no profile), unescaped percent signs in a crontab line, wrong owner, mode or missing trailing newline in /etc/cron.d, timers without Persistent= after downtime, DST and timezone jumps. Wrap in flock -n against overlap, log stdout and stderr explicitly, add a dead-man check-in. Use for "works in my shell but not at 3am", "timer never fires", "job overlaps itself". Not for long-running services (systemd-unit-failure), pipeline schedules (ci-triage) or what should page (alert-design).

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 aaf8fef537

Frequently asked questions

npx get-skill add greenblacked/scheduled-job-debugging