cron
Cheat sheet · https://pcornel.dk/topic.php?topic=5656
Answer
cron Automation manages scheduled Linux jobs while keeping crontab persistence, scheduler ownership, environment, execution evidence and job outcome distinct.
Remember
- Crontab entry exists ≠ scheduler executed it.
- Manual command success ≠ cron environment success.
- Job invoked ≠ job outcome succeeded.
- No email/output ≠ no failure.
First checks
crontab -l -u <user>— user croncat /etc/cron.d/*— system cron- cron module in Ansible — managed entries
Verify in this order
managed entry → cron → job
Where it usually breaks
cron configuration proves scheduling intent only; successful downstream execution must be observed separately.
Trigger → queue accepted → worker lease/pickup → task running → terminal result → target mutation/read-back → effective runtime state → workload.
cron automation proof-boundary map
| Boundary | Healthy evidence | Suspicious evidence |
|---|---|---|
| Scope / identity | Exact source revision, hosts and execution identity are explicit | Selector drift, stale inventory or wrong token changes scope/authority |
| Operation | Tool/provider action and per-host result are traceable | Partial failure, hidden error semantics or environment differences are lost |
| Platform state | Persistent and effective state are read back | Command/cmdlet success is mistaken for convergence |
| Workload proof | Original service/application acceptance passes | Automation summary substitutes for actual runtime behavior |
Read-only verification commands unless stated otherwise. Confirm syntax for your platform and release. Full reference: https://pcornel.dk/topic.php?topic=5656