diff options
author | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2023-12-08 09:50:38 +0100 |
---|---|---|
committer | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2024-02-12 13:33:30 +0100 |
commit | 9e90d4f42ef7911c286a9f217b32a018159e8ed6 (patch) | |
tree | 6b66becfd0757599cc99999f17a09d51bee3b533 /man/systemd-tmpfiles.xml | |
parent | tmpfiles: simplify how a helper function is called (diff) | |
download | systemd-9e90d4f42ef7911c286a9f217b32a018159e8ed6.tar.xz systemd-9e90d4f42ef7911c286a9f217b32a018159e8ed6.zip |
tmpfiles: implement --dry-run
The idea is simple: skip the final operation that creates or removes things
or changes the attributes, but otherwise go through the rest of the code.
This results in quite a lot of fairly repetitive conditions in the low-level
code. Another approach would be to print earlier, at a higher level, but then
we'd have less precise information about what is about to happen.
Diffstat (limited to 'man/systemd-tmpfiles.xml')
-rw-r--r-- | man/systemd-tmpfiles.xml | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/man/systemd-tmpfiles.xml b/man/systemd-tmpfiles.xml index 414d154c42..008bff62da 100644 --- a/man/systemd-tmpfiles.xml +++ b/man/systemd-tmpfiles.xml @@ -182,6 +182,14 @@ </varlistentry> <varlistentry> + <term><option>--dry-run</option></term> + <listitem><para>Process the configuration and print what operations would be performed, but don't + actually change anything in the file system.</para> + + <xi:include href="version-info.xml" xpointer="v256"/></listitem> + </varlistentry> + + <varlistentry> <term><option>--prefix=<replaceable>path</replaceable></option></term> <listitem><para>Only apply rules with paths that start with the specified prefix. This option can be specified multiple |