[systemd-devel] Can I use an EnvironmentFile to configure a Timer?
Windl, Ulrich
u.windl at ukr.de
Mon Aug 5 08:08:58 UTC 2024
Hi!
I have a service and timer template where the service instances are configured via an environment file like etc/.../%i.conf.
The timer template will use the @%i.service unit, but currently has a fixed "OnCalendar=daily" currently.
As the instances might want to run with a different frequency, one could "edit" the time files.
However I had the idea to read the timer interval from an environment variable like "OnCalendat=${interval}".
However, AFAIK, environment variables are supported in service units only, right?
Regards,
Ulrich
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/systemd-devel/attachments/20240805/84d17413/attachment.htm>
More information about the systemd-devel
mailing list