CronNudge

Published October 21, 2026

systemd Timer Not Running? Why OnCalendar Jobs Don't Fire

A systemd timer is two units. foo.timer decides when. foo.service is what runs. The timer only starts that service. "Not running" is one of three things: the timer is not active, the timer is active and never elapses, or the service starts and fails.

A five-field crontab line that never starts is crontab not running. The short copy-paste for a ping is systemd timers. The Windows counterpart is Task Scheduler task not running.

How a timer decides to run

systemd.timer(5) puts the schedule in the [Timer] section. Unit= names the unit to start. The suffix is not .timer. With Unit= omitted, the timer starts the service of the same name: foo.timer starts foo.service.

OnCalendar= is a wall-clock event. The other triggers are monotonic. They do not follow the timezone:

  • OnActiveSec= counts from the moment this timer unit is activated.
  • OnBootSec= counts from machine boot. For the system manager inside a container it is mapped to OnStartupSec=.
  • OnStartupSec= counts from when that service manager was first started. For the system manager that is early in boot. For a user manager it is the first start of systemd --user, which is normally the first login.
  • OnUnitActiveSec= counts from the last activation of the unit this timer starts.
  • OnUnitInactiveSec= counts from the last time that unit deactivated.

Any of these can be repeated, and calendar and monotonic triggers can share one timer. The timer elapses when any of them elapses. If OnBootSec= or OnStartupSec= is already in the past when the timer is activated, it elapses immediately and the service starts. The other monotonic settings do not do that.

The elapse is not the clock time you wrote. AccuracySec= defaults to 1 minute. systemd places the elapse inside a window that starts at the scheduled time and ends AccuracySec= later, at a stable per-host offset, so timers on one machine can wake the CPU together. RandomizedDelaySec= defaults to 0. When it is set, each firing adds a random delay from 0 up to that span, and the accuracy window is applied after that delay. Set AccuracySec=1us when the second matters. The two options are not the same knob: accuracy coalesces wakeups, and the random delay spreads them out.

Persistent= defaults to false, and it applies only to OnCalendar=. When it is true, the last time the service was triggered is stored on disk. The next time the timer is activated, the service runs once if at least one elapse was missed while the timer was inactive, still subject to RandomizedDelaySec=. It does not run once for every missed slot. A system timer writes /var/lib/systemd/timers/stamp-foo.timer. A user timer writes $XDG_DATA_HOME/systemd/timers/stamp-foo.timer, or ~/.local/share/systemd/timers/stamp-foo.timer when XDG_DATA_HOME is unset. systemctl clean --what=state foo.timer removes that file.

With no timezone suffix, an OnCalendar= event uses local time. A suffix of UTC, an IANA name from timedatectl list-timezones, or a numeric offset selects that zone. UTC on a calendar event dates to systemd 228. A zone other than UTC or the local zone dates to systemd 235. Debian 12 and later, Ubuntu 22.04 and later, and RHEL 9 and later are all past that. What a skipped or repeated hour does is cron jobs and daylight saving time.

Check an expression before you install it:

systemd-analyze calendar --iterations=3 'Mon..Fri *-*-* 09:00:00'

The output has the original form, the normalized form, the next elapse, and how far away that is. --iterations= adds further elapses. It defaults to 1, and it has been there since systemd 242. weekly normalizes to Mon *-*-* 00:00:00. daily UTC normalizes to *-*-* 00:00:00 UTC.

Why a timer does not fire

Work down this list. Each item is a different check.

The unit file on disk is not the one systemd loaded

Editing foo.timer does not change the running manager. systemctl status foo.timer then warns: Warning: The unit file, source configuration file or drop-ins of foo.timer changed on disk. Run 'systemctl daemon-reload' to reload units. A user unit says systemctl --user daemon-reload.

sudo systemctl daemon-reload
sudo systemctl restart foo.timer
systemctl list-timers --all foo.timer

daemon-reload reads the file. Restart the timer when NEXT is still the old time. enable reloads as part of its own work. A later edit does not.

The timer is not enabled, or you enabled the service

systemctl enable installs the [Install] symlinks. It does not start the unit unless you pass --now. The timer's install section is:

[Install]
WantedBy=timers.target

Enable and start the timer:

sudo systemctl enable --now foo.timer
systemctl is-enabled foo.timer
systemctl is-active foo.timer

is-enabled prints enabled when the symlink exists. is-active prints active when the timer is started. An enabled timer that was never started stays inactive until the next boot, and it does not elapse before then. systemctl start foo.timer starts it now.

Enabling foo.service does not schedule the timer. A service with no [Install] section makes systemctl enable foo.service report that the unit files have no installation config. That service is meant to be started by the timer. systemctl start foo.service is the manual run, covered below. It is not the schedule.

list-timers shows no next time

systemctl list-timers prints timers that are in memory, soonest first. Without --all it omits inactive timers, and it says to pass --all to see them. The columns are NEXT, LEFT, LAST, PASSED, UNIT, and ACTIVATES.

NEXT is the next elapse. LEFT is how long until then. LAST is the last time the timer ran. PASSED is how long ago that was. UNIT is the timer. ACTIVATES is the unit it starts.

A cell with no timestamp is a dash. systemd 251 and earlier print n/a in that cell. Ubuntu 22.04 ships systemd 249 and still prints n/a. systemd 252 and later print the dash. That is Debian 12 (252) and Debian 13 (257), Ubuntu 24.04 (255) and Ubuntu 26.04 (259), and the 252 and 257 series in RHEL 9 and RHEL 10.

NEXT has no time in three cases.

  1. The timer is inactive. is-active prints inactive. enable --now is the fix above.
  2. The timer already elapsed and has only monotonic triggers, so nothing further is scheduled. systemctl status foo.timer shows active (elapsed). LAST is when it ran. A repeating job needs OnCalendar=, or a monotonic pair such as OnBootSec= plus OnUnitActiveSec=.
  3. The calendar expression parses and has no future match. systemd-analyze calendar prints Next elapse: never. Mon 2020-01-01 is that shape. Thu,Fri 2012-*-1,5 11:12:13 is the same: the year 2012 is over.

ACTIVATES is a dash when the timer has no unit to start. The usual cause is a missing foo.service, or a Unit= name that does not match a real unit.

An expression systemd cannot parse never becomes a waiting timer. systemd-analyze calendar '0 3 * * *' fails with Failed to parse calendar specification '0 3 * * *': Invalid argument. That is crontab syntax. OnCalendar= is not a five-field cron expression. systemctl status foo.timer shows the load error. Fix the expression and daemon-reload.

The calendar is valid and still not the time you meant

Read the normalized form, not the line you typed. systemd-analyze calendar rewrites it. The manual's range operator is .., as in Mon..Fri. A comma is a list. Mon *-*-31 03:00:00 is only the months whose 31st is a Monday, so the next elapse can be months away while the expression is still valid.

The zone suffix is part of the match. *-*-* 03:00:00 is 03:00 in the system timezone. *-*-* 03:00:00 UTC is 03:00 UTC. timedatectl shows the system zone. The daylight-saving page is the skipped hour and the repeated hour. This page does not repeat it.

A monotonic timer is waiting on an event that is not going to happen

OnBootSec=10min on a machine that has been up for days is already in the past. Activating the timer elapses it immediately, the service runs once, and NEXT then has no further time. It does not wait for the next reboot, and it does not repeat. Use OnCalendar= for a clock time. Use OnBootSec= together with OnUnitActiveSec= when you want a first run after boot and a repeat measured from each activation. A boot oneshot, as opposed to a repeating timer, is cron @reboot not working.

OnUnitActiveSec= has no base until the service has been activated once. The timer loads and does not elapse. systemctl start foo.service once is that first activation. The timer is notified and the next interval is measured from it. OnUnitInactiveSec= is the same shape, measured from the last deactivation. A service that has never exited has no base either.

OnActiveSec= counts from when the timer unit was started, not from boot. After that one-shot elapses, NEXT is empty unless another trigger is configured.

The service is still running

If the unit the timer starts is already active when the timer elapses, systemd leaves it running. It does not start a second instance. A Type=oneshot service is active until its process exits. A hang, a lock, or a command waiting on the network looks like a timer that stopped. systemctl status foo.service shows active (running) and the PID. The process and a bound on how long it may run are cron job stuck or hanging. Two copies, when you do want the second one to be refused on purpose, are prevent overlapping cron jobs.

RemainAfterExit=yes keeps the service active after the process exits. A repeating timer then starts it once and never again. Leave RemainAfterExit= unset on a service a timer repeats. The default for a oneshot is no, so a finished oneshot goes inactive and the next elapse can start it.

When a oneshot runs longer than the calendar interval, the next elapse is already in the past by the time the process exits. The default is to trigger again immediately. DeferReactivation= changes that to wait for the next calendar time. It applies only to OnCalendar=, it defaults to false, and it was added in systemd 257. Debian 13, Ubuntu 26.04, and RHEL 10 have it. Debian 12, Ubuntu 24.04, and RHEL 9 do not.

The service starts and fails

The timer can be active (waiting) while the service has already failed. systemctl status foo.service shows the failure and the main process exit code. journalctl -u foo.service -u foo.timer is the log of both units. The service's own output is in that journal. Cron's mail and log files belong to a different daemon: where cron logs are.

The process is not a login shell. It does not read .bashrc or a profile. systemd.exec(5) sets $PATH for the system manager to /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin. The user manager's path is chosen by the distribution. systemd-run -P env prints the block a system service actually gets, and systemd-run --user -P env prints the user one. WorkingDirectory= defaults to / for a system service and to the user's home for a user service. User= defaults to root for a system service. If that user does not exist, the start fails. Put absolute paths in ExecStart=. The same class of miss under cron is cron job environment variables.

OnFailure= is a [Unit] setting, from systemd.unit(5). It names units to start when this unit enters the failed state. It is not a shell command, and it is not a [Service] key. Under [Service], systemd ignores it. Through systemd 255 the log line is Unknown key name 'OnFailure' in section 'Service', ignoring. From systemd 256 it is Unknown key 'OnFailure' in section [Service], ignoring. systemd-analyze verify foo.service prints that warning. Ubuntu 24.04 (255) is in the first group. Debian 13 (257) and Ubuntu 26.04 (259) are in the second.

A user timer stops when you log out

systemctl --user talks to your user manager. That manager starts at the first login and stops at logout, unless lingering is on. loginctl enable-linger with no argument enables it for the caller. With a username, and when the caller is not allowed to change this, use sudo:

sudo loginctl enable-linger "$USER"
loginctl show-user "$USER" -p Linger

Linger=yes means a user manager is spawned at boot and kept after logouts. logind.conf(5) describes the same split: session processes follow KillUserProcesses= (the default is yes), and processes under user@.service stay when lingering is enabled. A timer in ~/.config/systemd/user/ without lingering runs only while you are logged in.

Run the --user commands as that user. sudo systemctl --user is root's user manager, which is a different set of units. User services cannot switch to another account with User=. The only valid user is the one the user manager is running as.

The container's PID 1 is not systemd

Timers run only when systemd is the service manager. In a container whose PID 1 is the application, systemctl fails with:

System has not been booted with systemd as init system (PID 1). Can't operate.
Failed to connect to bus: Host is down

Nothing you put in /etc/systemd/system runs until PID 1 is systemd. A host that uses Podman or Docker with a systemd image is a different case. A host whose entrypoint is the app is this one.

The machine was off, or it was asleep

Persistent=false does not catch up a calendar elapse that passed while the timer was inactive. The machine was powered off, or the timer was stopped. The missed run is gone. Persistent=true runs the service once on the next activation if any elapse was missed. One run, not one per missed day.

Sleep is a different clock. While the system is suspended, a calendar timer that comes due is not acted on. On resume, systemd catches up, and several elapses during one sleep still produce one activation. WakeSystem=true asks the system to resume when the timer elapses, if the machine supports that, and only from the system manager. It does not suspend the machine again afterward. It does not replace Persistent=. A laptop that is suspended through 03:00 wakes or catches up on resume. A laptop that was powered off needs Persistent=true for that catch-up.

Inspect it

systemctl list-timers --all
systemctl status foo.timer foo.service
systemctl cat foo.timer foo.service
journalctl -u foo.service -u foo.timer --since "1 day ago"
systemd-analyze calendar --iterations=5 '*-*-* 03:00:00'
systemd-analyze verify /etc/systemd/system/foo.timer /etc/systemd/system/foo.service
sudo systemctl start foo.service

list-timers --all is the schedule, including inactive timers. status is the loaded state: active (waiting) has a future elapse, active (elapsed) does not, inactive is not started, failed is a unit that entered the failed state. cat prints the file systemd is using, including drop-ins. verify parses the files and prints warnings such as the ignored OnFailure= key. start foo.service runs the job once by hand. A success there means the service command works. It does not mean the timer will elapse.

Add --user to the systemctl lines for a user timer, and point verify at ~/.config/systemd/user/.

A timer that runs

/etc/systemd/system/foo.service:

[Service]
Type=oneshot
User=backup
WorkingDirectory=/var/backups
ExecStart=/usr/local/bin/backup.sh

Type=oneshot matters for the ping in the next section. The default type is simple, which treats the service as started as soon as the process is forked. The backup account has to exist. ExecStart= is an absolute path.

/etc/systemd/system/foo.timer:

[Timer]
OnCalendar=*-*-* 03:00:00
Persistent=true
# RandomizedDelaySec=5min

[Install]
WantedBy=timers.target

Uncomment RandomizedDelaySec= only when you want the start spread across that many minutes. Then raise the grace period in the next section by the same amount.

sudo systemd-analyze verify /etc/systemd/system/foo.service /etc/systemd/system/foo.timer
sudo systemctl daemon-reload
sudo systemctl enable --now foo.timer
systemctl list-timers foo.timer
sudo systemctl start foo.service

The user-manager copy lives in ~/.config/systemd/user/. Drop User=. The working directory defaults to the home directory. Linger is what keeps it running after logout:

# ~/.config/systemd/user/foo.service
[Service]
Type=oneshot
ExecStart=/usr/local/bin/backup.sh
# ~/.config/systemd/user/foo.timer
[Timer]
OnCalendar=*-*-* 03:00:00
Persistent=true

[Install]
WantedBy=timers.target
systemctl --user daemon-reload
systemctl --user enable --now foo.timer
sudo loginctl enable-linger "$USER"

Monitor it with CronNudge

One check for this timer. The success ping is a GET to https://cronnudge.com/ping/<your-check-id>. CronNudge accepts GET, POST, and HEAD. A 200 body is ok.

ExecStartPost= runs only after ExecStart= has been invoked successfully, and the type decides what that means. For Type=oneshot it runs after the ExecStart= process exits successfully. For Type=simple it runs when the process has been forked, which is before the work finishes. Keep Type=oneshot. Put OnFailure= in [Unit], naming a second oneshot that requests /fail:

# /etc/systemd/system/foo.service
[Unit]
OnFailure=foo-fail.service

[Service]
Type=oneshot
User=backup
WorkingDirectory=/var/backups
ExecStart=/usr/local/bin/backup.sh
ExecStartPost=/usr/bin/curl -fsS -m 10 --retry 3 -o /dev/null https://cronnudge.com/ping/<your-check-id>

# /etc/systemd/system/foo-fail.service
[Service]
Type=oneshot
ExecStart=/usr/bin/curl -fsS -m 10 --retry 3 -o /dev/null https://cronnudge.com/ping/<your-check-id>/fail

-f fails on an HTTP error, -m 10 stops at 10 seconds, --retry 3 retries transport failures, and -o /dev/null drops the body. If that success curl itself exits non-zero, ExecStartPost= fails the unit, and OnFailure= runs too. The job can have succeeded while the ping did not. A non-zero curl is visible in journalctl -u foo.service.

The same success test as a wrapper, when you would rather keep the ping in one command:

ExecStart=/bin/sh -c '/usr/local/bin/backup.sh && /usr/bin/curl -fsS -m 10 --retry 3 -o /dev/null https://cronnudge.com/ping/<your-check-id>'

&& skips the ping when backup.sh exits non-zero. The shell's non-zero status fails the service, which starts foo-fail.service if OnFailure= is set.

Create the check on the same clock time as OnCalendar=, in the timer's timezone. *-*-* 03:00:00 in local time is the cron expression 0 3 * * * in that zone. Mon..Fri *-*-* 09:00:00 is 0 9 * * 1-5. Paste the cron expression into the cron tool and read the next runs. The tool does not accept OnCalendar= syntax.

Grace is added to the next scheduled time after a success ping. The form offers none, 1 minute, 5 minutes, 15 minutes, and 1 hour. Five minutes is the default. The API accepts any whole number of seconds from 0 through 7 days. The timer can elapse as late as AccuracySec= plus RandomizedDelaySec=, and the service still has to finish. With the default accuracy of 1 minute and no random delay, 5 minutes of grace covers that window and a short script. 1 minute of grace can expire while the timer is still inside the accuracy window. RandomizedDelaySec=5min needs more than 5 minutes of grace: 15 minutes covers a short script, and 1 hour covers a long one. On a daily schedule the next slot is tomorrow, so an hour of grace still alerts the same morning. On a timer that repeats faster than the grace, a ping from the following slot can arrive before the deadline, and the missed slot never alerts.

The form's period list starts at 5 minutes, and a cron expression is rejected when its shortest gap is under the plan minimum. Free's minimum is 5 minutes. hourly and daily fit Free. A timer every minute does not. Pro's minimum is 1 minute. The numbers are on pricing.

/start is optional, for a run you also want timed. Ping /start before the work and the bare URL after it, and turn on run tracking. Setting Max runtime turns run tracking on. Max runtime is 1 second through 7 days. Free includes assertions and run tracking on 3 checks. Pro removes that cap. The fields are in assertions, runs, and agents. A service that stays active with no second start is the stuck-run case on that page.

What the ping means, and what it does not: CronNudge only knows about pings it receives. It cannot see systemd, and it cannot read the journal. A success ping means the success curl completed. A /fail ping means the failure unit ran. A timer that never elapses sends neither, and the check goes late when the deadline passes. A paused check stores the ping and does not alert. A failed ping, or no success ping by the deadline, is a down alert: "No successful ping arrived by the deadline." The next success after that is a recovery: "A successful ping arrived."

Free is 10 checks, a 5-minute minimum interval, email, and one Slack or Discord channel. Pro is $12 a month for 100 checks, a 1-minute minimum, signed webhooks, and the API.

The pattern for any scheduler, including the shell wrappers, is how to monitor cron jobs.

FAQ

Why is my systemd timer not running? The timer unit is inactive, the timer is active and has no future elapse, or the service starts and fails. systemctl status foo.timer foo.service separates those. inactive means it was not started: enable --now the timer. active (elapsed) or a NEXT cell with no time means nothing further is scheduled. A failed foo.service is in the journal, under journalctl -u foo.service.

Why does list-timers show n/a? systemd 251 and earlier print n/a when a timestamp cell is empty. systemd 252 and later print a dash. NEXT is empty when the timer is inactive, when a monotonic timer has already elapsed, or when the calendar expression has no future match. systemd-analyze calendar prints Next elapse: never for that last case. Pass --all or the inactive timers are omitted from the list.

Do I enable the timer or the service? Enable and start the timer: systemctl enable --now foo.timer. The timer's [Install] section is WantedBy=timers.target. Enabling the service does not arm the schedule. systemctl start foo.service runs the job once, which tests the command and does not test the timer.

Does a timer run missed jobs after a reboot? Persistent=true runs the service once if an OnCalendar= event was missed while the timer was inactive. It does not run once per missed slot, and it does nothing for monotonic triggers. The default is false, so a powered-off machine skips the elapse. A calendar timer that comes due during suspend is caught up once on resume, which is separate from Persistent=.

Why does my user timer stop after logout? The user manager stops at logout unless lingering is enabled. loginctl enable-linger keeps that user's manager running at boot and after logout. loginctl show-user prints Linger=yes when it is on. systemctl --user has to be run as that user. sudo systemctl --user is root's manager.

How do I test an OnCalendar expression? systemd-analyze calendar --iterations=3 followed by the expression, in single quotes. Read the normalized form and the next elapse. Next elapse: never means it will not fire. Failed to parse calendar specification means systemd rejected the string. A five-field cron expression is rejected. It is not an OnCalendar= value.


Enable the timer, confirm NEXT is a real time, and ping when the service exits 0. Create the check in the same timezone, or read 0 3 * * * on the cron tool.