[systemd-devel] [EXT] Re: sanity check: why am I unable to manage my own directory with systemd-tmpfiles?
Windl, Ulrich
u.windl at ukr.de
Mon Feb 3 13:50:28 UTC 2025
I don't know what you are citing, but on SLES15 SP6 the manual page for tmpfiles.d(5) has this:
For example:
# Files created and modified, and directories accessed more than
# an hour ago in "/tmp/foo/bar", are subject to time-based cleanup.
d /tmp/foo/bar - - - bmA:1h -
Maybe try adjusting that 😉
Kind regards,
Ulrich Windl
> -----Original Message-----
> From: systemd-devel <systemd-devel-bounces at lists.freedesktop.org> On
> Behalf Of Brian Reichert
> Sent: Friday, January 31, 2025 4:58 PM
> To: Mantas Mikul??nas <grawity at gmail.com>
> Cc: Brian Reichert <reichert at numachi.com>; systemd-
> devel at lists.freedesktop.org
> Subject: [EXT] Re: [systemd-devel] sanity check: why am I unable to manage
> my own directory with systemd-tmpfiles?
>
> 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?
>
> --
> Brian Reichert <reichert at numachi.com>
> BSD admin/developer at large
More information about the systemd-devel
mailing list