We Stopped Cron for 19 Hours: What the Logs Didn't Say
Dec 3, 2026
Trunc Team

This is everything the log says about cron stopping on one of our servers:

Dec  2 23:14:37 web01 systemd[1]: Stopping Regular background program processing daemon...Dec  2 23:14:37 web01 systemd[1]: Stopped Regular background program processing daemon.

"Regular background program processing daemon" is how Debian and Ubuntu describe cron. We stopped it on purpose, to watch our missing log alerts work on a real server, and left it off until the next afternoon:

Dec  3 18:19:53 web01 systemd[1]: Started Regular background program processing daemon.

19 hours and 5 minutes. The server kept sending its other logs the whole time. Cron logged nothing, because there was no cron.

Nothing in those lines is an error. The same thing happens by accident: an upgrade that doesn't start it again, a systemctl disable someone ran during a migration, a container image without cron in it. The evidence is a line that isn't there. The only way to see it is to know which lines should show up, and when.

What a normal hour looks like

Before the stop, this server logged a CMD line every few minutes. Two of them, from the half hour before:

Dec  2 22:45:01 web01 CRON[18571]: (root) CMD (command -v debian-sa1 > /dev/null && debian-sa1 1 1)Dec  2 23:09:01 web01 CRON[18614]: (root) CMD (  [ -x /usr/lib/php/sessionclean ] && if [ ! -d /run/systemd/system ]; then /usr/lib/php/sessionclean; fi)

sysstat's collector every 10 minutes (it ran again at 22:55 and 23:05), PHP's session cleanup at :09 and :39, cron.hourly at :17, and once a day cron.daily, popularity-contest and certbot. Every one of these is a line you can expect. After 23:14 none of them came.

The timeline

Six jobs on this server had confirmed schedules in Trunc. Each one alerted once, at a different time, because each has a different schedule:

Timeline of the cron stop test, with each alert
Time (UTC) What happened
Dec 2 23:14 Cron stopped
Dec 2 23:34 cron.hourly alert, 17 minutes after its 23:17 run
Dec 2 23:38 debian-sa1 (sysstat) alert, after 3 missed 10-minute runs
Dec 3 01:12 sessionclean alert, after 3 missed 30-minute runs
Dec 3 05:28 popularity-contest alert, an hour after its 04:27 run
Dec 3 07:26 cron.daily alert, an hour after its 06:25 run
Dec 3 13:02 certbot alert, an hour after its 12:00 run
Dec 3 18:19 Cron started again, 19 h 5 min later

They came one per job because each job's deadline fell in a different check. When several jobs on one server miss in the same check, Trunc sends one message that lists them, with a hint to check cron first.

What went missing

  • cron.hourly: whatever is in /etc/cron.hourly. 20 runs missed, from 23:17 to 18:17 the next day.
  • sysstat: the data behind sar. No sar data for 19 hours.
  • cron.daily: everything in /etc/cron.daily skipped that night.
  • popularity-contest: harmless.
  • sessionclean and certbot: nothing, as it turns out. Next section.

The two that didn't matter

Look at the sessionclean line again, and at certbot's:

Dec  2 00:00:01 web01 CRON[3707]: (root) CMD (test -x /usr/bin/certbot -a \! -d /run/systemd/system && perl -e 'sleep int(rand(43200))' && certbot -q renew)

Both test for /run/systemd/system. On a systemd host that directory exists, so the cron entry exits without doing anything. A systemd timer does the real work, and the timers didn't care that cron was off. Here's sessionclean's timer, 24 seconds after the cron entry above:

Dec  2 23:09:24 web01 systemd[1]: Starting Clean php session files...Dec  2 23:09:25 web01 systemd[1]: Started Clean php session files.

Those two lines kept showing up every 30 minutes through the whole outage, and "Started Certbot." showed up twice on each day.

On a systemd box those cron entries are a fallback. The alerts were right (cron didn't start them) and nothing was lost. Trunc learns the cron line, not the timer, so you get these two as well when cron stops. If certbot renews from cron on your servers, that's a different story: certbot not renewing.

Why nobody would have noticed

No error line exists for any of this, and nothing breaks on day one. sar has a gap. The daily jobs skip a night. You find out when you go looking for last night's load graph, or later, when whatever a daily job takes care of piles up.

On a server where certbot really does renew from cron, it's worse. With a 90-day certificate, certbot only renews once a third of the lifetime is left, and Let's Encrypt stopped sending expiry emails in June 2025. The first sign can be the browser warning.

Knowing which lines should show up

There are three ways to do it: check by hand, have each job ping a monitor, or learn the schedules from the logs. Cron monitoring walks through all three, with the commands.

The third is what our Schedules feature does. It learned these six jobs from a week of CMD lines and sent one alert per job. The alert uses the account's time zone (Los Angeles), so 23:17 UTC reads 15:17 PST. The cron.hourly one:

root's cron job did not show up on web01 at 15:17 PST:  cd / && run-parts --report /etc/cron.hourlyIt runs every hour at :17.Last seen: 14:17 PST (1 h 17 min ago)Check crontab -l -u root and that cron is running.

The server kept sending its other logs, so the two alerts for a server that goes silent (Server went quiet and Logging Stopped) stayed quiet, as they should. When the whole server stops instead, see log stop detection. How Trunc learns and when it alerts: missing log alerts.

Know which lines should show up, and when.

If you want to see what Trunc finds on your own servers, or have questions, email us at sales@noc.org.

Logging Guides

We love logs. In this section we will share some articles from our team to help you get better at logging.

Trunc Logging

Logging for fun and a good night of sleep.

  • Real time search
  • Google simple
  • Cheap
  • Just works
  • PCI compliance
Contact us!

Do you have an idea for an article that is not here? See something wrong? Contact us at support@noc.org

Tired of price gouging
  • Clear pricing
  • No need to guess
  • Real people
  • Real logging

Simple, Affordable, Log Management and Analysis.

14 days free trial. No credit card required.