Re: [systemd-devel] tmpfiles versus tmpwatch

2015-04-30 Thread Zbigniew Jędrzejewski-Szmek
On Wed, Apr 29, 2015 at 10:28:26PM +1200, Roger Qiu wrote: Doesn't relatime still update the time if the file is 1 day old (regardless of modication time), and the current tmpfiles wipes files that are older by 10 days? Yes, everything should work with relatime, unless you set tmpfiles cleanup

Re: [systemd-devel] tmpfiles versus tmpwatch

2015-04-29 Thread Lennart Poettering
On Wed, 29.04.15 22:08, Roger Qiu (roger@polycademy.com) wrote: Hi Lennart, So there really isn't a fast of way just checking if a file has an open file descriptor on it? Sometimes atime is on relatime, so it only gets updated if modification is earlier. Using relatime is fine,

Re: [systemd-devel] tmpfiles versus tmpwatch

2015-04-29 Thread Lennart Poettering
On Wed, 29.04.15 15:10, Roger Qiu (roger@polycademy.com) wrote: Hello all, I'm planning to use tmpwatch's `fuser` feature. But I'd prefer to run this simple service using systemd's tmpfiles. Does systemd tmpfiles support running `fuser` so that way it won't delete any files that have

Re: [systemd-devel] tmpfiles versus tmpwatch

2015-04-29 Thread Kai Krakow
Roger Qiu roger@polycademy.com schrieb: I'm planning to use tmpwatch's `fuser` feature. But I'd prefer to run this simple service using systemd's tmpfiles. Does systemd tmpfiles support running `fuser` so that way it won't delete any files that have an open file descriptor? I

Re: [systemd-devel] tmpfiles versus tmpwatch

2015-04-29 Thread Roger Qiu
Hi Lennart, So there really isn't a fast of way just checking if a file has an open file descriptor on it? Sometimes atime is on relatime, so it only gets updated if modification is earlier. On servers that don't shutdown, processes may access the file for long periods of time, and the