[systemd-devel] sanity check: why am I unable to manage my own directory with systemd-tmpfiles?

Mantas Mikulėnas grawity at gmail.com
Mon Feb 3 11:22:13 UTC 2025


On Fri, Jan 31, 2025 at 5:58 PM Brian Reichert <reichert at 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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/systemd-devel/attachments/20250203/b834f5dd/attachment.htm>


More information about the systemd-devel mailing list