summaryrefslogtreecommitdiffstats
path: root/man/systemd-tmpfiles.xml
diff options
context:
space:
mode:
authorDaan De Meyer <daan.j.demeyer@gmail.com>2023-03-28 11:05:46 +0200
committerDaan De Meyer <daan.j.demeyer@gmail.com>2023-03-30 11:45:05 +0200
commit65e179a1e7021ab655c07dc392d5dd6fba2d2acb (patch)
tree7b460ed7fd3c049be03c9d7e996a2737b346c33f /man/systemd-tmpfiles.xml
parentMerge pull request #27064 from DaanDeMeyer/chase-fixes (diff)
downloadsystemd-65e179a1e7021ab655c07dc392d5dd6fba2d2acb.tar.xz
systemd-65e179a1e7021ab655c07dc392d5dd6fba2d2acb.zip
tmpfiles: Try to take a BSD lock on files as well
Similar to what we do for directories, just before we remove a file, let's try to take a BSD lock on it. If that fails, skip removing the file.
Diffstat (limited to 'man/systemd-tmpfiles.xml')
-rw-r--r--man/systemd-tmpfiles.xml4
1 files changed, 3 insertions, 1 deletions
diff --git a/man/systemd-tmpfiles.xml b/man/systemd-tmpfiles.xml
index c2e32f9f3d..49eda985b4 100644
--- a/man/systemd-tmpfiles.xml
+++ b/man/systemd-tmpfiles.xml
@@ -131,7 +131,9 @@
directories marked with <varname>D</varname> or
<varname>R</varname>, and files or directories themselves
marked with <varname>r</varname> or <varname>R</varname> are
- removed.</para></listitem>
+ removed unless an exclusive or shared BSD lock is taken on them (see <citerefentry
+ project='man-pages'><refentrytitle>flock</refentrytitle><manvolnum>2</manvolnum></citerefentry>).
+ </para></listitem>
</varlistentry>
<varlistentry>