r/linuxadmin • u/kwhali • 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?
View all comments
Show parent comment
1
u/kwhali May 28 '26
I've thought of doing the equivalent in my preferred language (Rust), I'd just have preferred an existing project since there might be some caveats I've not thought about if I DIY my own solution (generic for reuse rather than tailored to any specific project).
I'm just a bit surprised that there's not an established CLI tool for this functionality? Especially for forwarding signals and stdout/stderr which are related needs for this type of wrapper command.