Files
finit/src
Aaron Andersen 0b8d39329a tmpfiles: add --clean flag for age-based cleanup
Add support for the --clean (-C) flag to remove files and directories
older than the age specified in tmpfiles.d configuration entries.

The age field (6th column) in tmpfiles.d entries can now be used with
'd', 'D', and 'e' type entries to clean up old files.  Supported time
suffixes are: s (seconds), m (minutes), h (hours), d (days), w (weeks).

Example configuration:
    d /tmp/cache 0755 root root 10d

When run with --clean, files in /tmp/cache older than 10 days will be
removed.  The directory itself is preserved.

Uses a conservative cleanup approach matching systemd-tmpfiles:
 - Files: kept if ANY of atime, ctime, mtime is recent
 - Directories: kept if ANY of atime, mtime is recent (ctime excluded
   because cleanup itself updates directory ctime)

A value of "-" or "0" for age disables cleanup for that entry.

Note: x/X exclusion patterns are recognized but not yet implemented.
2026-01-18 18:59:20 -05:00
..
2025-07-06 03:28:42 +02:00
2025-07-10 14:34:16 +02:00
2025-07-10 14:34:16 +02:00
…
2025-03-31 14:16:24 +02:00
…
2025-07-10 14:34:16 +02:00
2025-07-10 14:34:16 +02:00
2025-07-10 14:34:16 +02:00
2025-07-10 14:34:16 +02:00
2025-07-10 14:34:16 +02:00
2025-07-10 14:34:16 +02:00
2025-07-10 14:34:16 +02:00
2025-07-10 14:34:16 +02:00
2025-07-10 14:34:16 +02:00
2025-07-10 14:34:16 +02:00
2025-07-10 14:34:16 +02:00
2025-07-10 14:34:16 +02:00
2025-07-10 14:34:16 +02:00
2025-07-10 14:34:16 +02:00
2025-07-10 14:34:16 +02:00
2025-07-10 14:34:16 +02:00
2025-07-10 14:34:16 +02:00
2025-07-10 14:34:16 +02:00
2025-07-10 14:34:16 +02:00
2025-07-10 14:34:16 +02:00
2025-07-10 14:34:16 +02:00
2025-07-10 14:34:16 +02:00
2025-07-06 03:13:56 +02:00
2025-07-10 14:34:16 +02:00
2025-07-10 14:34:16 +02:00
2025-12-24 09:54:37 -05:00
2025-07-10 14:34:16 +02:00
2025-07-10 14:34:16 +02:00
2025-07-10 14:34:16 +02:00
2025-07-10 14:34:16 +02:00
2025-07-10 14:34:16 +02:00
2025-07-10 14:34:16 +02:00