<div dir="ltr"><div class="gmail_default" style="font-size:large">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.</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Jul 8, 2016 at 6:54 PM, Lennart Poettering <span dir="ltr"><<a href="mailto:lennart@poettering.net" target="_blank">lennart@poettering.net</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">On Fri, 08.07.16 16:03, One Infinite Loop (<a href="mailto:6pozmo@gmail.com">6pozmo@gmail.com</a>) wrote:<br>
<br>
> If you want to disable timer alone or do something else, then you could use<br>
> .timer file. If not, instead of [Install] section in  .service file, you​<br>
> could have a [Timer] section.<br>
<br>
The reason timer definitions and service definitions are separate is<br>
that timers may be in effect independently of the services they<br>
trigger, and services may be active independently of any timers they<br>
are triggered by. Thus, as the lifecycle of both is pretty much<br>
independent of each other, and independent object should have their<br>
own 1:1 unit files on disk we chose to have the timer and service unit<br>
files separate on disk too.<br>
<br>
Why I do acknowledge your PoV on this, and can see why it appears<br>
suprising at first why you have to have two files on disk for this<br>
instead of just one, I think ultimately it's more uniform and easier<br>
to grok if independent objects with independent lifecycles map to<br>
independent files on disk.<br>
<br>
Hope that makes sense.<br>
<br>
(Also, your email/quoting program appears very broken)<br>
<span class="HOEnZb"><font color="#888888"><br>
Lennart<br>
<br>
--<br>
Lennart Poettering, Red Hat<br>
</font></span></blockquote></div><br></div>