mirror of
https://github.com/troglobit/finit.git
synced 2026-11-23 20:11:44 +00:00
doc: how to run tmpfiles --clean, from cron
Finit only runs tmpfiles at boot, to create and remove. The age of an entry has no effect until something calls tmpfiles --clean, and the documentation said there was no aging at all. Describe how to call it from cron, with a service as the fallback on a system without cron, and what cleaning leaves alone. Update the tmpfiles TODO to match. Signed-off-by: Joachim Wiberg <troglobit@gmail.com>
This commit is contained in:
4 files changed
+36
-18
No files matched your search
+6
-13
@@ -8,22 +8,17 @@ files or common packages already rely on, last what few will miss.
|
||||
[tmpfiles.d(5)]: https://www.freedesktop.org/software/systemd/man/tmpfiles.d.html
|
||||
|
||||
|
||||
1. Nothing runs the clean pass
|
||||
------------------------------
|
||||
1. Ages
|
||||
-------
|
||||
|
||||
Finit calls `tmpfiles --create --remove --boot` at boot and nothing
|
||||
else. The age field has no effect until the user adds a task for
|
||||
`tmpfiles --clean`.
|
||||
Finit never runs `tmpfiles --clean` itself, `doc/plugins.md` tells the
|
||||
user to call it from cron.
|
||||
|
||||
* Ship a task for it, systemd runs its timer 15 min after boot and
|
||||
then daily
|
||||
* `x` and `X` are accepted but exclude nothing from cleaning
|
||||
* Age `0` should clean everything, it is read as no age
|
||||
* Cleaning crosses mount points, it should stay on one file system
|
||||
* Only one number with `s`, `m`, `h`, `d`, or `w` is read. Missing
|
||||
are `1d12h`, `ms`, `us`, the `~` prefix, and the `a`, `b`, `c`, `m`
|
||||
selectors for which timestamps to compare
|
||||
* The age is only used for `d`, `D`, and `e`
|
||||
* The age is only used for `d`, `D`, and `e`, and an `e` entry with a
|
||||
glob in the path is not cleaned
|
||||
|
||||
|
||||
2. Prefixes that are silently dropped
|
||||
@@ -101,8 +96,6 @@ their own paths.
|
||||
* Files are processed one directory at a time. tmpfiles.d(5) sorts
|
||||
all of them by name, whatever directory they are in, so `00-x.conf`
|
||||
in `/etc` should run before `50-y.conf` in `/usr/lib`
|
||||
* `doc/README.md`, `doc/index.md`, and `doc/plugins.md` say there is
|
||||
no aging. There is, see 1 above
|
||||
* `a` and `A` handle an ACL of at most 32 entries, a path with more is
|
||||
left as it is, with a warning
|
||||
* `mksubsys()` in `src/util.c` is unused
|
||||
Reference in new issue
Block a user