On Fri, Jan 31, 2025 at 5:58 PM Brian Reichert <reich...@numachi.com> wrote:
> On Fri, Jan 31, 2025 at 09:32:58AM +0200, Mantas Mikul??nas wrote: > > If you want to only consider modification time, specify it as something > > like "mM:10d" ??? see "Age" in tmpfiles.d(5). > > Actually, this is failing for me: > > 10-153-68-12:~ # cat /usr/lib/tmpfiles.d/foobar.conf > q /home/foobar/tmp 1700 foobar foobar mM:10d > 10-153-68-12:~ # SYSTEMD_LOG_LEVEL=debug systemd-tmpfiles --remove > --clean /usr/lib/tmpfiles.d/foobar.conf > Reading config file "/usr/lib/tmpfiles.d/foobar.conf". > [/usr/lib/tmpfiles.d/foobar.conf:1] Invalid age 'mM:10d'. > > That looks like correct syntax, based on that online doc I found. > > If that is correct syntax, does that mean this feature is not > supported by my version of systemd? The feature seems to have been added in v249 according to NEWS in the Git repo. -- Mantas Mikulėnas