summaryrefslogtreecommitdiffstats
path: root/man/tmpfiles.d.xml
diff options
context:
space:
mode:
authorZach Smith <z@zxmth.us>2019-10-04 03:19:18 +0200
committerZach Smith <z@zxmth.us>2019-10-04 03:28:15 +0200
commitd0ea5c5e39dce60efbce6d86534eb9ca253440b0 (patch)
tree76fa1d6111fc318b676ade8ff28a82e109d1d21e /man/tmpfiles.d.xml
parentsystemd-tmpfiles: rename force to append_or_force (diff)
downloadsystemd-d0ea5c5e39dce60efbce6d86534eb9ca253440b0.tar.xz
systemd-d0ea5c5e39dce60efbce6d86534eb9ca253440b0.zip
systemd-tmpfiles: allow appending content to file
Adds support to append to files with w+ type. w /tmp/13291.out - - - - first line\n w+ /tmp/13291.out - - - - second line\n
Diffstat (limited to 'man/tmpfiles.d.xml')
-rw-r--r--man/tmpfiles.d.xml16
1 files changed, 8 insertions, 8 deletions
diff --git a/man/tmpfiles.d.xml b/man/tmpfiles.d.xml
index dce05c364f..726ae93e71 100644
--- a/man/tmpfiles.d.xml
+++ b/man/tmpfiles.d.xml
@@ -51,7 +51,7 @@ p /fifo/to/create mode user group - -
L /symlink/to/create - - - - symlink/target/path
c /dev/char-device-to-create mode user group - -
b /dev/block-device-to-create mode user group - -
-# p+, L+, c+, b+ create target unconditionally
+# p+, L+, c+, b+ create target unconditionally, w+ appends to the file
C /target/to/create - - - - /source/to/copy
x /path-or-glob/to/ignore - - - - -
X /path-or-glob/to/ignore/recursively - - - - -
@@ -167,13 +167,13 @@ L /tmp/foobar - - - - /dev/null</programlisting>
</varlistentry>
<varlistentry>
- <term><varname>w</varname></term>
- <listitem><para>Write the argument parameter to a file, if
- the file exists. Lines of this type accept shell-style
- globs in place of normal path names. The argument parameter
- will be written without a trailing newline. C-style
- backslash escapes are interpreted. Follows
- symlinks.</para></listitem>
+ <term><varname>w, w+</varname></term>
+ <listitem><para>Write the argument parameter to a file, if the file exists.
+ If suffixed with <varname>+</varname>, the line will be appended to the file.
+ If your configuration writes multiple lines to the same file, use <varname>w+</varname>.
+ Lines of this type accept shell-style globs in place of normal path names.
+ The argument parameter will be written without a trailing newline.
+ C-style backslash escapes are interpreted. Follows symlinks.</para></listitem>
</varlistentry>
<varlistentry>