<div dir="ltr"><div class="gmail_default" style="font-size:large">As I said before, I don't want to replace .service+.timer combination. I just think there are cases when .service file (containing, for example, ExecStart followed by many ExecStartPost) can have a [Crontab] section with .timer syntax. The two formats (service+timer and [Crontab] inside a service file) can coexist. It's just a suggestion.</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Jul 8, 2016 at 7:16 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:35, One Infinite Loop (<a href="mailto:6pozmo@gmail.com">6pozmo@gmail.com</a>) wrote:<br>
<br>
> A few usecases:<br>
> 1) I want to delete specific files once a day<br>
<br>
For this you probably should be using tmpfiles' "aging" logic, and not<br>
define your own timer.<br>
<br>
> 2)I want to free RAM using sync command and `echo 3 ><br>
> /proc/sys/vm/drop_caches` every 15 seconds<br>
<br>
Uh. Oh. I don't see why anyone would want to do this...<br>
<br>
> 3)I want to make sure certain processes always run using a specific nice<br>
> value like -15. I know control groups are invented but it's not the same<br>
> thing.<br>
<br>
Doing this with a service timer appears very strange to me. Simply set<br>
"Nice=-15" in the unit file starting your service and the nice level will<br>
be properly inherited by all processes of your services.<br>
<br>
But, in general, you could do all of the above with a combination of<br>
.timer and .service file just fine already. These usecases are<br>
perfectly covered, the only difference between what you are proposing<br>
and what has been implemented is whether it's adding two unit files<br>
per item instead of one, which I don't think is too bad...<br>
<div class="HOEnZb"><div class="h5"><br>
Lennart<br>
<br>
--<br>
Lennart Poettering, Red Hat<br>
</div></div></blockquote></div><br></div>