← LAB NOTEBOOK · REPORT LN-2611-17 · TIL · SYSTEMD · ● VERIFIED
One empty line in a systemd timer override silently disabled it
A drop-in that set OnUnitActiveSec= to nothing, to clear the old interval, also cleared every other trigger on the timer. The timer loaded fine and never fired.
RESULT
Adding an OnActiveSec= line after the reset gave the timer a starting trigger again. It fired on its own and the container updated itself as designed.
The most dangerous line in any config file is the one that looks too boring to read.
My deploy tool lets each app choose how often it checks for updates. It does that with a small drop-in override on the app’s systemd timer:
# /etc/systemd/system/app-update.timer.d/interval.conf
[Timer]
OnUnitActiveSec=
OnUnitActiveSec=15min
The empty line is the standard systemd way to say “forget the previous value of this setting”. Without it, you’d get both the old and the new interval. It’s a well-worn idiom, which is exactly why I didn’t look twice.
What it actually does in a timer
In a .timer unit, assigning an empty string to any of the trigger settings doesn’t just clear that one setting. The systemd docs say it resets the timer’s whole list of triggers: OnBootSec=, OnActiveSec=, OnCalendar=, all of them.
My base timer had an OnBootSec= to get the cycle started after a boot, and OnUnitActiveSec= to repeat it. The drop-in wiped both, then put back only the repeat. But “repeat after the service last ran” never triggers if the service never runs in the first place.
So the timer loaded, showed up in systemctl list-timers, raised no errors and never once fired.
How I noticed
The app that showed it was a new reverse proxy, deployed with this drop-in. Its update job never ran on its own. I was expecting a change to show up, it never did, and I spent a while looking everything over before I found the cause. Older containers didn’t have the drop-in at all, so they were fine. That’s what made it easy to miss: everything else was updating normally.
The fix
Put a starting trigger back after the reset:
[Timer]
OnUnitActiveSec=
OnUnitActiveSec=15min
OnActiveSec=2min
OnActiveSec= counts from when the timer itself is started, so the first run happens two minutes after the timer starts, and OnUnitActiveSec= takes over from there.
I fixed it live on the affected container and kicked the update once by hand. Then I fixed the template in the deploy tool so new containers get the right drop-in. The next time the timer was due, it fired by itself, and the container updated to the fixed version without me touching it.
A quick check
After changing a timer, look at the NEXT column:
systemctl list-timers app-update.timer
If NEXT is empty or n/a, the timer has nothing to wait for. It’s loaded, it’s enabled, and it’s never going to do anything.
A timer with no triggers is very calm. That’s not the same as working.
Names and addresses are placeholders · first published November 2026