On 2014-08-15 18:56, wolfi323 wrote:
> No, the cleaning script is not triggered every 15 minutes.
>
> Or are you speaking about run-crons now?
The daily cron jobs, actually all of the daily cron scripts, are run not
by cron directly, but by the run-crons script, which was called by cron
every 15 minutes. Thus the need to run the daily delete tmp files script
was evaluated every 15 minutes.
> I think we are talking about different things then.
No, actually the same thing
>
> I already posted the cron job that was part of 12.2.
> What do you mean? run-crons?
> Then you are not talking about the /tmp cleaning script now, but about
> openSUSE’s cron itself.
>
> But you wrote:
>> You see, the old cron script job did all that, and it was configurable.
> I thought you really meant the cron job script (that I posted) with “old
> cron script job”.
> That sentence was at least a bit ambiguous I would say…
Yes, that’s true.
>> No, I was asking what systemd does: I know pretty well what the openSUSE
>> cron implementation does
> And I answered you. At least I quoted the documentation and how I
> interpret it.
Yes, I know, I read that documentation myself, but it is clear as mud to me.
>
>> You answered that above: it runs a day later, counted as system running
>> time. Wich is also a bit unclear. if a machine runs just 2 hours a day,
>> when will the cleaning job runs?
>>
> 15 minutes after you turned it on.
>
> If you only hibernate, it wil take 12 days for it to run again I
> suppose.
> But if it is not running, nothing will create temporary files either…
>
Ok, I mean this.
Suppose I boot at 00:00, for simplicity.
At 00:15, systemd would delete all /tmp files older than 1 day (with the
config that jimoe666 posted:
d /tmp 1777 root root 1d
ie, not exactly at boot, and not everything.
At 02:00, I hibernate.
At 22:00, I power it up again (thaw).
At 23:00, I hibernate.
At 06:00, thaw.
Does clean up happen at 06:15? I guess not, because the machine has not
been running 24 hours, despite the uptime command saying “1 day, 6 hours”
I guess that clean up would happen whenever 24 hours actual running time
is reached, right? Could be today, or in weeks, if the machine only runs
one hour per day.
You see, the “definition” is not clear at all
–
Cheers / Saludos,
Carlos E. R.
(from 13.1 x86_64 “Bottle” at Telcontar)