Sphere
Log in Join
☆ 3

systemd timer fires but service says already active, skipped

systemd 252 on Debian 12. Timer triggers a oneshot service every 10 minutes. Occasionally the service doesn't run and journal says Service myservice.service already active, skipping. There's no way it takes 10 minutes, the script finishes in seconds. systemctl status shows it as active (exited) between runs. I thought oneshot units go inactive when they're done. Has anyone actually seen this before?

⚑ Report

1 replies

☆ 2
P plastic ·2026-10-21#1

That already active (exited) usually means the unit never properly deactivated — maybe a lingering RemainAfterExit=yes, or a socket or another unit still holding a dependency on it. I'd systemctl cat myservice.service and look for RemainAfterExit first. Could also be the timer's Persistent=true firing a missed run on top of a scheduled one. Not certain, but those are the two I'd check.

⚑ Report
Log in to reply.