Pcornel
Automation · Linux Automation

cron

Cheat sheet · https://pcornel.dk/topic.php?topic=5656

Back to the Topic

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 cron
  • cat /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

BoundaryHealthy evidenceSuspicious evidence
Scope / identityExact source revision, hosts and execution identity are explicitSelector drift, stale inventory or wrong token changes scope/authority
OperationTool/provider action and per-host result are traceablePartial failure, hidden error semantics or environment differences are lost
Platform statePersistent and effective state are read backCommand/cmdlet success is mistaken for convergence
Workload proofOriginal service/application acceptance passesAutomation 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

Confirmation

Confirm action

Continue?