[systemd-devel] Adding a Timer section to .service files

Michael Biebl mbiebl at gmail.com
Sat Jul 9 09:11:16 UTC 2016


2016-07-08 18:11 GMT+02:00 Lennart Poettering <lennart at poettering.net>:
> On Fri, 08.07.16 19:00, One Infinite Loop (6pozmo at gmail.com) wrote:
>
>> No, I understand perfectly why 2 files are needed. All I am saying is that,
>> in some cases, a section like [Crontab] in a .service file (where you set a
>> few commands to run every 15 seconds) would be very useful.
>
> Well, but that would mean quite a redundancy in our most core file format, and I
> am not a fan of that I must say. After all this way you'd have two
> ways to define a time-triggered service: via a pair of timer+service
> unit file, or via a service file with embedded timer section...

To be fair, there is some precedent here with tmpfiles and RuntimeDirectory.


-- 
Why is it that all of the instruments seeking intelligent life in the
universe are pointed away from Earth?


More information about the systemd-devel mailing list