summaryrefslogtreecommitdiff
path: root/man/tmpfiles.d.xml
diff options
context:
space:
mode:
authorWilliam Douglas <william.r.douglas@gmail.com>2017-08-09 08:53:03 -0700
committerLennart Poettering <lennart@poettering.net>2017-08-09 17:53:03 +0200
commitb3f5897f6e46f6dc54d9f46ea16258f558173500 (patch)
treee8b97db3893aeaa4bd235e4d1364b320ac5a82af /man/tmpfiles.d.xml
parent4e7b57eb0eef102f717ba8ee7fdb6c89a0459554 (diff)
downloadsystemd-b3f5897f6e46f6dc54d9f46ea16258f558173500.tar.gz
tmpfiles: Allow create symlink on directories (#6039)
Currently if tmpfiles is run with force on symlink creation but there already exists a directory at that location, the creation will fail. This change updates the behavior to remove the directory with rm_fr and then attempts to create the symlink again.
Diffstat (limited to 'man/tmpfiles.d.xml')
-rw-r--r--man/tmpfiles.d.xml15
1 files changed, 8 insertions, 7 deletions
diff --git a/man/tmpfiles.d.xml b/man/tmpfiles.d.xml
index 555e9c2d56..91434d7b7a 100644
--- a/man/tmpfiles.d.xml
+++ b/man/tmpfiles.d.xml
@@ -273,13 +273,14 @@ L /tmp/foobar - - - - /dev/null</programlisting>
<term><varname>L</varname></term>
<term><varname>L+</varname></term>
<listitem><para>Create a symlink if it does not exist
- yet. If suffixed with <varname>+</varname> and a file
- already exists where the symlink is to be created, it will
- be removed and be replaced by the symlink. If the argument
- is omitted, symlinks to files with the same name residing in
- the directory <filename>/usr/share/factory/</filename> are
- created. Note that permissions and ownership on symlinks
- are ignored.</para></listitem>
+ yet. If suffixed with <varname>+</varname> and a file or
+ directory already exists where the symlink is to be created,
+ it will be removed and be replaced by the symlink. If the
+ argument is omitted, symlinks to files with the same name
+ residing in the directory
+ <filename>/usr/share/factory/</filename> are created. Note
+ that permissions and ownership on symlinks are ignored.
+ </para></listitem>
</varlistentry>
<varlistentry>