Can I use an EnvironmentFile to configure a Timer?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

 


[Index of Archives]     [LARTC]     [Bugtraq]     [Yosemite Forum]     [Photo]

  Powered by Linux