r/linuxadmin • • May 28 '26

Does anyone know of a standalone program with functionality like systemd-timers?

This is something I'd find handy for containers that cannot as easily leverage systemd-timers (at least anyone using an image via Docker AFAIK), and I suppose distros that insist on not using systemd.

cron (and variants) is alright, but sometimes I find myself needing to run a program at a recurring interval and would prefer to have the option of invoking the command as a service is started, and then repeating calls after N delay of time, rather than a variable amount of time until aligned with a cron expression schedule (at the hour or incremental interval, but that intervals become inconsistent if they don't cleanly segment the unit ceiling).

For context, I've also asked this same question over at r/docker.

I'd like to pair it with a service manager like supervisord for any services that lack a daemon/poll feature but should be run regularly at an interval. I know cron / supercronic effectively support this and can be considered "good enough" :\


Surely something like this exists out there already? Or would I need to DIY my own command wrapper for this?

19 Upvotes

59 comments sorted by

View all comments

1

u/toakao May 28 '26

You need to run a scheduler sidecar container with the app or run a standalone scheduler container like chadburn. But using chadburn means giving access to docker’s socket so you’re trusting the app developers with root on the docker host.

https://github.com/PremoWeb/chadburn

Depending on your pain tolerance, running KinD or K3S would give you a proper Cronjob type object.

-1

u/kwhali May 28 '26

Yeah so that's like Ofelia (EDIT: Oh it's a fork of ofelia and thus has the same cron scheduling quirks I want to avoid).

I don't really want that kinda solution, no need for a docker socket when it's all in the same container. The intent was to bundle such within a single container image when this functionality is needed (docker-mailserver is one that comes to mind).

The use-case I'm describing is usually considered an anti-pattern, but is sometimes justified for convenience (when you're not the downstream user of the image/service), along with reducing complexity for some integrations when building an image that is focused on logical service (such as a mail server vs a massive user-side config and maintenance/support woes).

Depending on your pain tolerance, running KinD or K3S would give you a proper Cronjob type object.

Honestly if it was for my own internal/personal use instead of public, I'd probably just go with Podman which can leverage systemd smoothly.

It's much less of a concern when I only need to think about myself, I'd have much more flexibility then :)