Where to start First steps track · 15 stages
Linux Labs

systemd timers — scheduled jobs

cheat sheet · Ubuntu 24.04 · systemd 255 https://lab.dimsanych.ru/en/wiki/systemd-timers/

Cheat sheet

  • systemctl list-timers timers and their next run
  • systemctl list-timers --all inactive ones too
  • sudo systemctl enable --now clean.timer enable and start the timer
  • sudo systemctl start clean.service run the job right now
  • journalctl -u clean.service -n 20 output of the latest runs
  • systemd-analyze calendar 'Mon..Fri 03:00' check a schedule
  • systemctl cat clean.timer what the unit file says
  • sudo systemctl daemon-reload after editing unit files
Loading…