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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxxxxxxxxxxxxx> On
> Behalf Of Brian Reichert
> Sent: Friday, January 31, 2025 4:58 PM
> To: Mantas Mikul??nas <grawity@xxxxxxxxx>
> Cc: Brian Reichert <reichert@xxxxxxxxxxx>; systemd-
> devel@xxxxxxxxxxxxxxxxxxxxx
> Subject: [EXT] Re:  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@xxxxxxxxxxx>
> BSD admin/developer at large




[Index of Archives]     [LARTC]     [Bugtraq]     [Yosemite Forum]     [Photo]

  Powered by Linux