[systemd-devel] [PATCH] tmpfiles: allow Age to be set to 0d

Lennart Poettering lennart at poettering.net
Mon Sep 24 05:28:50 PDT 2012


On Fri, 21.09.12 12:36, Tom Gundersen (teg at jklm.no) wrote:

> 
> On Tue, Sep 11, 2012 at 12:52 AM, Lennart Poettering
> <lennart at poettering.net> wrote:
> > What is the intended behaviour of an age setting of 0?
> 
> Not sure I understand your question.
> 
> For all intents and purposes 0s is the same as 1us (or something else
> sufficiently small). I.e., the file is cleaned up every time
> systemd-tmpfiles --clean is called. This is probably not something you
> want during normal operation (though some obviously do). However, it
> is useful when testing systemd-tmpfiles, and surprising that it does
> not work.

Ah, OK. This makes sense I guess. The reason I was asking is that 0 in
contexts like these often has some kind of special meaning, for example
"turn aging" off or so.

Could you add a sentence or so to the man page explaining what age of 0
means? Something like "Settig age to 0 has the effect of unconditional
clean-up on every run of systemd-tmpfiles --cleanup" or so. If it wasn't
clear to me (even though I must admit your assumption is actually kinda
obvious) it probably isn't clear to other people either.

Can you update the patch with the man page fix? I'll then merge it. (Oh,
BTW, can I interest you in git access? I think it would be cool and
could commit this right-away yourself. Please create an fdo ticket:

http://www.freedesktop.org/wiki/AccountRequests

I'll then OK they and reassign so that you get commit access.)

Lennart

-- 
Lennart Poettering - Red Hat, Inc.


More information about the systemd-devel mailing list