|
Zbigniew Jędrzejewski-Szmek |
126222 |
From 6972095a2b6eb919b622a89d11e0dc823ed60efb Mon Sep 17 00:00:00 2001
|
|
Zbigniew Jędrzejewski-Szmek |
126222 |
From: =?UTF-8?q?Zbigniew=20J=C4=99drzejewski-Szmek?= <zbyszek@in.waw.pl>
|
|
Zbigniew Jędrzejewski-Szmek |
126222 |
Date: Tue, 24 Dec 2013 10:21:45 -0500
|
|
Zbigniew Jędrzejewski-Szmek |
126222 |
Subject: [PATCH] man,units: tmpfiles.d(5) cleanup
|
|
Zbigniew Jędrzejewski-Szmek |
126222 |
|
|
Zbigniew Jędrzejewski-Szmek |
126222 |
Condition for /lib (necessary for split /usr) was missing from the unit.
|
|
Zbigniew Jędrzejewski-Szmek |
126222 |
|
|
Zbigniew Jędrzejewski-Szmek |
126222 |
Some changes which were done in tmpfiles.d(5) were not carried over to
|
|
Zbigniew Jędrzejewski-Szmek |
126222 |
systemd-tmpfiles(1).
|
|
Zbigniew Jędrzejewski-Szmek |
126222 |
|
|
Zbigniew Jędrzejewski-Szmek |
126222 |
Also use markup where possible.
|
|
Zbigniew Jędrzejewski-Szmek |
126222 |
|
|
Zbigniew Jędrzejewski-Szmek |
126222 |
Conflicts:
|
|
Zbigniew Jędrzejewski-Szmek |
126222 |
man/tmpfiles.d.xml
|
|
Zbigniew Jędrzejewski-Szmek |
126222 |
---
|
|
Zbigniew Jędrzejewski-Szmek |
126222 |
man/systemd-tmpfiles.xml | 53 ++++++----
|
|
Zbigniew Jędrzejewski-Szmek |
126222 |
man/tmpfiles.d.xml | 168 +++++++++++++++++++-------------
|
|
Zbigniew Jędrzejewski-Szmek |
126222 |
units/systemd-tmpfiles-setup.service.in | 1 +
|
|
Zbigniew Jędrzejewski-Szmek |
126222 |
3 files changed, 134 insertions(+), 88 deletions(-)
|
|
Zbigniew Jędrzejewski-Szmek |
126222 |
|
|
Zbigniew Jędrzejewski-Szmek |
126222 |
diff --git a/man/systemd-tmpfiles.xml b/man/systemd-tmpfiles.xml
|
|
Zbigniew Jędrzejewski-Szmek |
126222 |
index ba727e1..91c0372 100644
|
|
Zbigniew Jędrzejewski-Szmek |
126222 |
--- a/man/systemd-tmpfiles.xml
|
|
Zbigniew Jędrzejewski-Szmek |
126222 |
+++ b/man/systemd-tmpfiles.xml
|
|
Zbigniew Jędrzejewski-Szmek |
126222 |
@@ -54,7 +54,9 @@
|
|
Zbigniew Jędrzejewski-Szmek |
126222 |
|
|
Zbigniew Jędrzejewski-Szmek |
126222 |
<refsynopsisdiv>
|
|
Zbigniew Jędrzejewski-Szmek |
126222 |
<cmdsynopsis>
|
|
Zbigniew Jędrzejewski-Szmek |
126222 |
- <command>systemd-tmpfiles <arg choice="opt" rep="repeat">OPTIONS</arg> <arg choice="opt" rep="repeat">CONFIGURATION FILE</arg></command>
|
|
Zbigniew Jędrzejewski-Szmek |
126222 |
+ <command>systemd-tmpfiles</command>
|
|
Zbigniew Jędrzejewski-Szmek |
126222 |
+ <arg choice="opt" rep="repeat">OPTIONS</arg>
|
|
Zbigniew Jędrzejewski-Szmek |
126222 |
+ <arg choice="opt" rep="repeat"><replaceable>CONFIGFILE</replaceable></arg>
|
|
Zbigniew Jędrzejewski-Szmek |
126222 |
</cmdsynopsis>
|
|
Zbigniew Jędrzejewski-Szmek |
126222 |
|
|
Zbigniew Jędrzejewski-Szmek |
126222 |
<para><filename>systemd-tmpfiles-setup.service</filename></para>
|
|
Zbigniew Jędrzejewski-Szmek |
126222 |
@@ -67,22 +69,20 @@
|
|
Zbigniew Jędrzejewski-Szmek |
126222 |
<title>Description</title>
|
|
Zbigniew Jędrzejewski-Szmek |
126222 |
|
|
Zbigniew Jędrzejewski-Szmek |
126222 |
<para><command>systemd-tmpfiles</command> creates,
|
|
Zbigniew Jędrzejewski-Szmek |
126222 |
- deletes and cleans up volatile and temporary files and
|
|
Zbigniew Jędrzejewski-Szmek |
126222 |
+ deletes, and cleans up volatile and temporary files and
|
|
Zbigniew Jędrzejewski-Szmek |
126222 |
directories, based on the configuration file format and
|
|
Zbigniew Jędrzejewski-Szmek |
126222 |
- location specified in <citerefentry>
|
|
Zbigniew Jędrzejewski-Szmek |
126222 |
- <refentrytitle>tmpfiles.d</refentrytitle>
|
|
Zbigniew Jędrzejewski-Szmek |
126222 |
- <manvolnum>5</manvolnum>
|
|
Zbigniew Jędrzejewski-Szmek |
126222 |
- </citerefentry>.</para>
|
|
Zbigniew Jędrzejewski-Szmek |
126222 |
+ location specified in
|
|
Zbigniew Jędrzejewski-Szmek |
126222 |
+ <citerefentry><refentrytitle>tmpfiles.d</refentrytitle><manvolnum>5</manvolnum></citerefentry>.
|
|
Zbigniew Jędrzejewski-Szmek |
126222 |
+ </para>
|
|
Zbigniew Jędrzejewski-Szmek |
126222 |
|
|
Zbigniew Jędrzejewski-Szmek |
126222 |
<para>If invoked with no arguments, it applies all
|
|
Zbigniew Jędrzejewski-Szmek |
126222 |
directives from all configuration files. If one or
|
|
Zbigniew Jędrzejewski-Szmek |
126222 |
more filenames are passed on the command line, only
|
|
Zbigniew Jędrzejewski-Szmek |
126222 |
the directives in these files are applied. If only
|
|
Zbigniew Jędrzejewski-Szmek |
126222 |
the basename of a configuration file is specified,
|
|
Zbigniew Jędrzejewski-Szmek |
126222 |
- all configuration directories as specified in <citerefentry>
|
|
Zbigniew Jędrzejewski-Szmek |
126222 |
- <refentrytitle>tmpfiles.d</refentrytitle>
|
|
Zbigniew Jędrzejewski-Szmek |
126222 |
- <manvolnum>5</manvolnum>
|
|
Zbigniew Jędrzejewski-Szmek |
126222 |
- </citerefentry> are searched for a matching file.</para>
|
|
Zbigniew Jędrzejewski-Szmek |
126222 |
+ all configuration directories as specified in
|
|
Zbigniew Jędrzejewski-Szmek |
126222 |
+ <citerefentry><refentrytitle>tmpfiles.d</refentrytitle><manvolnum>5</manvolnum></citerefentry>
|
|
Zbigniew Jędrzejewski-Szmek |
126222 |
+ are searched for a matching file.</para>
|
|
Zbigniew Jędrzejewski-Szmek |
126222 |
</refsect1>
|
|
Zbigniew Jędrzejewski-Szmek |
126222 |
|
|
Zbigniew Jędrzejewski-Szmek |
126222 |
<refsect1>
|
|
Zbigniew Jędrzejewski-Szmek |
126222 |
@@ -94,12 +94,25 @@
|
|
Zbigniew Jędrzejewski-Szmek |
126222 |
|
|
Zbigniew Jędrzejewski-Szmek |
126222 |
<varlistentry>
|
|
Zbigniew Jędrzejewski-Szmek |
126222 |
<term><option>--create</option></term>
|
|
Zbigniew Jędrzejewski-Szmek |
126222 |
- <listitem><para>If this option is passed, all
|
|
Zbigniew Jędrzejewski-Szmek |
126222 |
- files and directories marked with f,
|
|
Zbigniew Jędrzejewski-Szmek |
126222 |
- F, d, D in the configuration files are
|
|
Zbigniew Jędrzejewski-Szmek |
126222 |
- created. Files and directories marked with z,
|
|
Zbigniew Jędrzejewski-Szmek |
126222 |
- Z have their ownership, access mode and security
|
|
Zbigniew Jędrzejewski-Szmek |
126222 |
- labels set.</para></listitem>
|
|
Zbigniew Jędrzejewski-Szmek |
126222 |
+ <listitem><para>If this option is
|
|
Zbigniew Jędrzejewski-Szmek |
126222 |
+ passed, all files and directories
|
|
Zbigniew Jędrzejewski-Szmek |
126222 |
+ marked with <varname>f</varname>,
|
|
Zbigniew Jędrzejewski-Szmek |
126222 |
+ <varname>F</varname>,
|
|
Zbigniew Jędrzejewski-Szmek |
126222 |
+ <varname>w</varname>,
|
|
Zbigniew Jędrzejewski-Szmek |
126222 |
+ <varname>d</varname>,
|
|
Zbigniew Jędrzejewski-Szmek |
126222 |
+ <varname>D</varname>,
|
|
Zbigniew Jędrzejewski-Szmek |
126222 |
+ <varname>p</varname>,
|
|
Zbigniew Jędrzejewski-Szmek |
126222 |
+ <varname>L</varname>,
|
|
Zbigniew Jędrzejewski-Szmek |
126222 |
+ <varname>c</varname>,
|
|
Zbigniew Jędrzejewski-Szmek |
126222 |
+ <varname>b</varname>,
|
|
Zbigniew Jędrzejewski-Szmek |
126222 |
+ <varname>m</varname> in the
|
|
Zbigniew Jędrzejewski-Szmek |
126222 |
+ configuration files are created or
|
|
Zbigniew Jędrzejewski-Szmek |
126222 |
+ written to. Files and directories
|
|
Zbigniew Jędrzejewski-Szmek |
126222 |
+ marked with <varname>z</varname>,
|
|
Zbigniew Jędrzejewski-Szmek |
126222 |
+ <varname>Z</varname>,
|
|
Zbigniew Jędrzejewski-Szmek |
126222 |
+ <varname>m</varname> have their
|
|
Zbigniew Jędrzejewski-Szmek |
126222 |
+ ownership, access mode and security
|
|
Zbigniew Jędrzejewski-Szmek |
126222 |
+ labels set. </para></listitem>
|
|
Zbigniew Jędrzejewski-Szmek |
126222 |
</varlistentry>
|
|
Zbigniew Jędrzejewski-Szmek |
126222 |
|
|
Zbigniew Jędrzejewski-Szmek |
126222 |
<varlistentry>
|
|
Zbigniew Jędrzejewski-Szmek |
126222 |
@@ -113,9 +126,11 @@
|
|
Zbigniew Jędrzejewski-Szmek |
126222 |
<varlistentry>
|
|
Zbigniew Jędrzejewski-Szmek |
126222 |
<term><option>--remove</option></term>
|
|
Zbigniew Jędrzejewski-Szmek |
126222 |
<listitem><para>If this option is
|
|
Zbigniew Jędrzejewski-Szmek |
126222 |
- passed, all files and directories marked
|
|
Zbigniew Jędrzejewski-Szmek |
126222 |
- with r, R in the configuration files
|
|
Zbigniew Jędrzejewski-Szmek |
126222 |
- are removed.</para></listitem>
|
|
Zbigniew Jędrzejewski-Szmek |
126222 |
+ passed, all files and directories
|
|
Zbigniew Jędrzejewski-Szmek |
126222 |
+ marked with <varname>r</varname>,
|
|
Zbigniew Jędrzejewski-Szmek |
126222 |
+ <varname>R</varname> in the
|
|
Zbigniew Jędrzejewski-Szmek |
126222 |
+ configuration files are
|
|
Zbigniew Jędrzejewski-Szmek |
126222 |
+ removed.</para></listitem>
|
|
Zbigniew Jędrzejewski-Szmek |
126222 |
</varlistentry>
|
|
Zbigniew Jędrzejewski-Szmek |
126222 |
<varlistentry>
|
|
Zbigniew Jędrzejewski-Szmek |
126222 |
<term><option>--prefix=PATH</option></term>
|
|
Zbigniew Jędrzejewski-Szmek |
126222 |
diff --git a/man/tmpfiles.d.xml b/man/tmpfiles.d.xml
|
|
Zbigniew Jędrzejewski-Szmek |
126222 |
index e8b630d..a00637b 100644
|
|
Zbigniew Jędrzejewski-Szmek |
126222 |
--- a/man/tmpfiles.d.xml
|
|
Zbigniew Jędrzejewski-Szmek |
126222 |
+++ b/man/tmpfiles.d.xml
|
|
Zbigniew Jędrzejewski-Szmek |
126222 |
@@ -67,23 +67,32 @@
|
|
Zbigniew Jędrzejewski-Szmek |
126222 |
<title>Configuration Format</title>
|
|
Zbigniew Jędrzejewski-Szmek |
126222 |
|
|
Zbigniew Jędrzejewski-Szmek |
126222 |
<para>Each configuration file shall be named in the
|
|
Zbigniew Jędrzejewski-Szmek |
126222 |
- style of <filename><package>.conf</filename>.
|
|
Zbigniew Jędrzejewski-Szmek |
126222 |
- Files in <filename>/etc/</filename> override files
|
|
Zbigniew Jędrzejewski-Szmek |
126222 |
- with the same name in <filename>/usr/lib/</filename>
|
|
Zbigniew Jędrzejewski-Szmek |
126222 |
- and <filename>/run/</filename>. Files in
|
|
Zbigniew Jędrzejewski-Szmek |
126222 |
- <filename>/run/</filename> override files with the same
|
|
Zbigniew Jędrzejewski-Szmek |
126222 |
- name in <filename>/usr/lib/</filename>. Packages
|
|
Zbigniew Jędrzejewski-Szmek |
126222 |
+ style of
|
|
Zbigniew Jędrzejewski-Szmek |
126222 |
+ <filename><replaceable>package</replaceable>.conf</filename>
|
|
Zbigniew Jędrzejewski-Szmek |
126222 |
+ or
|
|
Zbigniew Jędrzejewski-Szmek |
126222 |
+ <filename><replaceable>package</replaceable>-<replaceable>part</replaceable>.conf</filename>.
|
|
Zbigniew Jędrzejewski-Szmek |
126222 |
+ The second variant should be used when it is desirable
|
|
Zbigniew Jędrzejewski-Szmek |
126222 |
+ to make it easy to override just this part of
|
|
Zbigniew Jędrzejewski-Szmek |
126222 |
+ configuration.</para>
|
|
Zbigniew Jędrzejewski-Szmek |
126222 |
+
|
|
Zbigniew Jędrzejewski-Szmek |
126222 |
+ <para>Files in <filename>/etc/tmpfiles.d</filename>
|
|
Zbigniew Jędrzejewski-Szmek |
126222 |
+ override files with the same name in
|
|
Zbigniew Jędrzejewski-Szmek |
126222 |
+ <filename>/usr/lib/tmpfiles.d</filename> and
|
|
Zbigniew Jędrzejewski-Szmek |
126222 |
+ <filename>/run/tmpfiles.d</filename>. Files in
|
|
Zbigniew Jędrzejewski-Szmek |
126222 |
+ <filename>/run/tmpfiles.d</filename> override files
|
|
Zbigniew Jędrzejewski-Szmek |
126222 |
+ with the same name in
|
|
Zbigniew Jędrzejewski-Szmek |
126222 |
+ <filename>/usr/lib/tmpfiles.d</filename>. Packages
|
|
Zbigniew Jędrzejewski-Szmek |
126222 |
should install their configuration files in
|
|
Zbigniew Jędrzejewski-Szmek |
126222 |
- <filename>/usr/lib/</filename>. Files in
|
|
Zbigniew Jędrzejewski-Szmek |
126222 |
- <filename>/etc/</filename> are reserved for the local
|
|
Zbigniew Jędrzejewski-Szmek |
126222 |
- administrator, who may use this logic to override the
|
|
Zbigniew Jędrzejewski-Szmek |
126222 |
- configuration files installed by vendor packages. All
|
|
Zbigniew Jędrzejewski-Szmek |
126222 |
- configuration files are sorted by their filename in
|
|
Zbigniew Jędrzejewski-Szmek |
126222 |
- lexicographic order, regardless in which of the
|
|
Zbigniew Jędrzejewski-Szmek |
126222 |
- directories they reside. If multiple files specify the
|
|
Zbigniew Jędrzejewski-Szmek |
126222 |
- same path, the entry in the file with the lexicographically
|
|
Zbigniew Jędrzejewski-Szmek |
126222 |
- earliest name will be applied, all all other conflicting
|
|
Zbigniew Jędrzejewski-Szmek |
126222 |
- entries logged as errors.</para>
|
|
Zbigniew Jędrzejewski-Szmek |
126222 |
+ <filename>/usr/lib/tmpfiles.d</filename>. Files in
|
|
Zbigniew Jędrzejewski-Szmek |
126222 |
+ <filename>/etc/tmpfiles.d</filename> are reserved for
|
|
Zbigniew Jędrzejewski-Szmek |
126222 |
+ the local administrator, who may use this logic to
|
|
Zbigniew Jędrzejewski-Szmek |
126222 |
+ override the configuration files installed by vendor
|
|
Zbigniew Jędrzejewski-Szmek |
126222 |
+ packages. All configuration files are sorted by their
|
|
Zbigniew Jędrzejewski-Szmek |
126222 |
+ filename in lexicographic order, regardless in which
|
|
Zbigniew Jędrzejewski-Szmek |
126222 |
+ of the directories they reside. If multiple files
|
|
Zbigniew Jędrzejewski-Szmek |
126222 |
+ specify the same path, the entry in the file with the
|
|
Zbigniew Jędrzejewski-Szmek |
126222 |
+ lexicographically earliest name will be applied, all
|
|
Zbigniew Jędrzejewski-Szmek |
126222 |
+ all other conflicting entries logged as errors.</para>
|
|
Zbigniew Jędrzejewski-Szmek |
126222 |
|
|
Zbigniew Jędrzejewski-Szmek |
126222 |
<para>If the administrator wants to disable a
|
|
Zbigniew Jędrzejewski-Szmek |
126222 |
configuration file supplied by the vendor, the
|
|
Zbigniew Jędrzejewski-Szmek |
126222 |
@@ -93,10 +102,10 @@
|
|
Zbigniew Jędrzejewski-Szmek |
126222 |
same filename.</para>
|
|
Zbigniew Jędrzejewski-Szmek |
126222 |
|
|
Zbigniew Jędrzejewski-Szmek |
126222 |
<para>The configuration format is one line per path
|
|
Zbigniew Jędrzejewski-Szmek |
126222 |
- containing action, path, mode, ownership, age and argument
|
|
Zbigniew Jędrzejewski-Szmek |
126222 |
+ containing type, path, mode, ownership, age, and argument
|
|
Zbigniew Jędrzejewski-Szmek |
126222 |
fields:</para>
|
|
Zbigniew Jędrzejewski-Szmek |
126222 |
|
|
Zbigniew Jędrzejewski-Szmek |
126222 |
- <programlisting>Type Path Mode UID GID Age Argument
|
|
Zbigniew Jędrzejewski-Szmek |
126222 |
+ <programlisting>#Type Path Mode UID GID Age Argument
|
|
Zbigniew Jędrzejewski-Szmek |
126222 |
d /run/user 0755 root root 10d -
|
|
Zbigniew Jędrzejewski-Szmek |
126222 |
L /tmp/foobar - - - - /dev/null</programlisting>
|
|
Zbigniew Jędrzejewski-Szmek |
126222 |
|
|
Zbigniew Jędrzejewski-Szmek |
126222 |
@@ -109,12 +118,12 @@ L /tmp/foobar - - - - /dev/null</programlisting>
|
|
Zbigniew Jędrzejewski-Szmek |
126222 |
<variablelist>
|
|
Zbigniew Jędrzejewski-Szmek |
126222 |
<varlistentry>
|
|
Zbigniew Jędrzejewski-Szmek |
126222 |
<term><varname>f</varname></term>
|
|
Zbigniew Jędrzejewski-Szmek |
126222 |
- <listitem><para>Create a file if it does not exist yet (optionally writing a short string into it, if the argument parameter is passed)</para></listitem>
|
|
Zbigniew Jędrzejewski-Szmek |
126222 |
+ <listitem><para>Create a file if it does not exist yet. If the argument parameter is given, it will be written to the file.</para></listitem>
|
|
Zbigniew Jędrzejewski-Szmek |
126222 |
</varlistentry>
|
|
Zbigniew Jędrzejewski-Szmek |
126222 |
|
|
Zbigniew Jędrzejewski-Szmek |
126222 |
<varlistentry>
|
|
Zbigniew Jędrzejewski-Szmek |
126222 |
<term><varname>F</varname></term>
|
|
Zbigniew Jędrzejewski-Szmek |
126222 |
- <listitem><para>Create or truncate a file (optionally writing a short string into it, if the argument parameter is passed)</para></listitem>
|
|
Zbigniew Jędrzejewski-Szmek |
126222 |
+ <listitem><para>Create or truncate a file. If the argument parameter is given, it will be written to the file.</para></listitem>
|
|
Zbigniew Jędrzejewski-Szmek |
126222 |
</varlistentry>
|
|
Zbigniew Jędrzejewski-Szmek |
126222 |
|
|
Zbigniew Jędrzejewski-Szmek |
126222 |
<varlistentry>
|
|
Zbigniew Jędrzejewski-Szmek |
126222 |
@@ -127,32 +136,32 @@ L /tmp/foobar - - - - /dev/null</programlisting>
|
|
Zbigniew Jędrzejewski-Szmek |
126222 |
|
|
Zbigniew Jędrzejewski-Szmek |
126222 |
<varlistentry>
|
|
Zbigniew Jędrzejewski-Szmek |
126222 |
<term><varname>d</varname></term>
|
|
Zbigniew Jędrzejewski-Szmek |
126222 |
- <listitem><para>Create a directory if it does not exist yet</para></listitem>
|
|
Zbigniew Jędrzejewski-Szmek |
126222 |
+ <listitem><para>Create a directory if it does not exist yet.</para></listitem>
|
|
Zbigniew Jędrzejewski-Szmek |
126222 |
</varlistentry>
|
|
Zbigniew Jędrzejewski-Szmek |
126222 |
|
|
Zbigniew Jędrzejewski-Szmek |
126222 |
<varlistentry>
|
|
Zbigniew Jędrzejewski-Szmek |
126222 |
<term><varname>D</varname></term>
|
|
Zbigniew Jędrzejewski-Szmek |
126222 |
- <listitem><para>Create or empty a directory</para></listitem>
|
|
Zbigniew Jędrzejewski-Szmek |
126222 |
+ <listitem><para>Create or empty a directory.</para></listitem>
|
|
Zbigniew Jędrzejewski-Szmek |
126222 |
</varlistentry>
|
|
Zbigniew Jędrzejewski-Szmek |
126222 |
|
|
Zbigniew Jędrzejewski-Szmek |
126222 |
<varlistentry>
|
|
Zbigniew Jędrzejewski-Szmek |
126222 |
<term><varname>p</varname></term>
|
|
Zbigniew Jędrzejewski-Szmek |
126222 |
- <listitem><para>Create a named pipe (FIFO) if it does not exist yet</para></listitem>
|
|
Zbigniew Jędrzejewski-Szmek |
126222 |
+ <listitem><para>Create a named pipe (FIFO) if it does not exist yet.</para></listitem>
|
|
Zbigniew Jędrzejewski-Szmek |
126222 |
</varlistentry>
|
|
Zbigniew Jędrzejewski-Szmek |
126222 |
|
|
Zbigniew Jędrzejewski-Szmek |
126222 |
<varlistentry>
|
|
Zbigniew Jędrzejewski-Szmek |
126222 |
<term><varname>L</varname></term>
|
|
Zbigniew Jędrzejewski-Szmek |
126222 |
- <listitem><para>Create a symlink if it does not exist yet</para></listitem>
|
|
Zbigniew Jędrzejewski-Szmek |
126222 |
+ <listitem><para>Create a symlink if it does not exist yet.</para></listitem>
|
|
Zbigniew Jędrzejewski-Szmek |
126222 |
</varlistentry>
|
|
Zbigniew Jędrzejewski-Szmek |
126222 |
|
|
Zbigniew Jędrzejewski-Szmek |
126222 |
<varlistentry>
|
|
Zbigniew Jędrzejewski-Szmek |
126222 |
<term><varname>c</varname></term>
|
|
Zbigniew Jędrzejewski-Szmek |
126222 |
- <listitem><para>Create a character device node if it does not exist yet</para></listitem>
|
|
Zbigniew Jędrzejewski-Szmek |
126222 |
+ <listitem><para>Create a character device node if it does not exist yet.</para></listitem>
|
|
Zbigniew Jędrzejewski-Szmek |
126222 |
</varlistentry>
|
|
Zbigniew Jędrzejewski-Szmek |
126222 |
|
|
Zbigniew Jędrzejewski-Szmek |
126222 |
<varlistentry>
|
|
Zbigniew Jędrzejewski-Szmek |
126222 |
<term><varname>b</varname></term>
|
|
Zbigniew Jędrzejewski-Szmek |
126222 |
- <listitem><para>Create a block device node if it does not exist yet</para></listitem>
|
|
Zbigniew Jędrzejewski-Szmek |
126222 |
+ <listitem><para>Create a block device node if it does not exist yet.</para></listitem>
|
|
Zbigniew Jędrzejewski-Szmek |
126222 |
</varlistentry>
|
|
Zbigniew Jędrzejewski-Szmek |
126222 |
|
|
Zbigniew Jędrzejewski-Szmek |
126222 |
<varlistentry>
|
|
Zbigniew Jędrzejewski-Szmek |
126222 |
@@ -174,11 +183,12 @@ L /tmp/foobar - - - - /dev/null</programlisting>
|
|
Zbigniew Jędrzejewski-Szmek |
126222 |
as controlled with the Age
|
|
Zbigniew Jędrzejewski-Szmek |
126222 |
parameter. Note that lines of
|
|
Zbigniew Jędrzejewski-Szmek |
126222 |
this type do not influence the
|
|
Zbigniew Jędrzejewski-Szmek |
126222 |
- effect of r or R lines. Lines
|
|
Zbigniew Jędrzejewski-Szmek |
126222 |
- of this type accept
|
|
Zbigniew Jędrzejewski-Szmek |
126222 |
+ effect of <varname>r</varname>
|
|
Zbigniew Jędrzejewski-Szmek |
126222 |
+ or <varname>R</varname> lines.
|
|
Zbigniew Jędrzejewski-Szmek |
126222 |
+ Lines of this type accept
|
|
Zbigniew Jędrzejewski-Szmek |
126222 |
shell-style globs in place of
|
|
Zbigniew Jędrzejewski-Szmek |
126222 |
- normal path
|
|
Zbigniew Jędrzejewski-Szmek |
126222 |
- names.</para></listitem>
|
|
Zbigniew Jędrzejewski-Szmek |
126222 |
+ normal path names.
|
|
Zbigniew Jędrzejewski-Szmek |
126222 |
+ </para></listitem>
|
|
Zbigniew Jędrzejewski-Szmek |
126222 |
</varlistentry>
|
|
Zbigniew Jędrzejewski-Szmek |
126222 |
|
|
Zbigniew Jędrzejewski-Szmek |
126222 |
<varlistentry>
|
|
Zbigniew Jędrzejewski-Szmek |
126222 |
@@ -187,28 +197,31 @@ L /tmp/foobar - - - - /dev/null</programlisting>
|
|
Zbigniew Jędrzejewski-Szmek |
126222 |
during cleaning. Use this type
|
|
Zbigniew Jędrzejewski-Szmek |
126222 |
to exclude paths from clean-up
|
|
Zbigniew Jędrzejewski-Szmek |
126222 |
as controlled with the Age
|
|
Zbigniew Jędrzejewski-Szmek |
126222 |
- parameter. Unlike x this
|
|
Zbigniew Jędrzejewski-Szmek |
126222 |
+ parameter. Unlike
|
|
Zbigniew Jędrzejewski-Szmek |
126222 |
+ <varname>x</varname>, this
|
|
Zbigniew Jędrzejewski-Szmek |
126222 |
parameter will not exclude the
|
|
Zbigniew Jędrzejewski-Szmek |
126222 |
- content if path is a directory,
|
|
Zbigniew Jędrzejewski-Szmek |
126222 |
- but only directory itself.
|
|
Zbigniew Jędrzejewski-Szmek |
126222 |
- Note that lines of this type do
|
|
Zbigniew Jędrzejewski-Szmek |
126222 |
- not influence the effect of r
|
|
Zbigniew Jędrzejewski-Szmek |
126222 |
- or R lines. Lines of this type
|
|
Zbigniew Jędrzejewski-Szmek |
126222 |
- accept shell-style globs in
|
|
Zbigniew Jędrzejewski-Szmek |
126222 |
- place of normal path
|
|
Zbigniew Jędrzejewski-Szmek |
126222 |
- names.</para></listitem>
|
|
Zbigniew Jędrzejewski-Szmek |
126222 |
+ content if path is a
|
|
Zbigniew Jędrzejewski-Szmek |
126222 |
+ directory, but only directory
|
|
Zbigniew Jędrzejewski-Szmek |
126222 |
+ itself. Note that lines of
|
|
Zbigniew Jędrzejewski-Szmek |
126222 |
+ this type do not influence the
|
|
Zbigniew Jędrzejewski-Szmek |
126222 |
+ effect of <varname>r</varname>
|
|
Zbigniew Jędrzejewski-Szmek |
126222 |
+ or <varname>R</varname> lines.
|
|
Zbigniew Jędrzejewski-Szmek |
126222 |
+ Lines of this type accept
|
|
Zbigniew Jędrzejewski-Szmek |
126222 |
+ shell-style globs in place of
|
|
Zbigniew Jędrzejewski-Szmek |
126222 |
+ normal path names.
|
|
Zbigniew Jędrzejewski-Szmek |
126222 |
+ </para></listitem>
|
|
Zbigniew Jędrzejewski-Szmek |
126222 |
</varlistentry>
|
|
Zbigniew Jędrzejewski-Szmek |
126222 |
|
|
Zbigniew Jędrzejewski-Szmek |
126222 |
<varlistentry>
|
|
Zbigniew Jędrzejewski-Szmek |
126222 |
<term><varname>r</varname></term>
|
|
Zbigniew Jędrzejewski-Szmek |
126222 |
<listitem><para>Remove a file
|
|
Zbigniew Jędrzejewski-Szmek |
126222 |
- or directory if it
|
|
Zbigniew Jędrzejewski-Szmek |
126222 |
- exists. This may not be used
|
|
Zbigniew Jędrzejewski-Szmek |
126222 |
- to remove non-empty
|
|
Zbigniew Jędrzejewski-Szmek |
126222 |
- directories, use R for
|
|
Zbigniew Jędrzejewski-Szmek |
126222 |
- that. Lines of this type
|
|
Zbigniew Jędrzejewski-Szmek |
126222 |
- accept shell-style globs in
|
|
Zbigniew Jędrzejewski-Szmek |
126222 |
- place of normal path
|
|
Zbigniew Jędrzejewski-Szmek |
126222 |
+ or directory if it exists.
|
|
Zbigniew Jędrzejewski-Szmek |
126222 |
+ This may not be used to remove
|
|
Zbigniew Jędrzejewski-Szmek |
126222 |
+ non-empty directories, use
|
|
Zbigniew Jędrzejewski-Szmek |
126222 |
+ <varname>R</varname> for that.
|
|
Zbigniew Jędrzejewski-Szmek |
126222 |
+ Lines of this type accept
|
|
Zbigniew Jędrzejewski-Szmek |
126222 |
+ shell-style globs in place of
|
|
Zbigniew Jędrzejewski-Szmek |
126222 |
+ normal path
|
|
Zbigniew Jędrzejewski-Szmek |
126222 |
names.</para></listitem>
|
|
Zbigniew Jędrzejewski-Szmek |
126222 |
</varlistentry>
|
|
Zbigniew Jędrzejewski-Szmek |
126222 |
|
|
Zbigniew Jędrzejewski-Szmek |
126222 |
@@ -308,11 +321,14 @@ L /tmp/foobar - - - - /dev/null</programlisting>
|
|
Zbigniew Jędrzejewski-Szmek |
126222 |
<para>The file access mode to use when
|
|
Zbigniew Jędrzejewski-Szmek |
126222 |
creating this file or directory. If omitted or
|
|
Zbigniew Jędrzejewski-Szmek |
126222 |
when set to -, the default is used: 0755 for
|
|
Zbigniew Jędrzejewski-Szmek |
126222 |
- directories, 0644 for all other file
|
|
Zbigniew Jędrzejewski-Szmek |
126222 |
- objects. For z, Z lines, if omitted or when set
|
|
Zbigniew Jędrzejewski-Szmek |
126222 |
- to -, the file access mode will not be
|
|
Zbigniew Jędrzejewski-Szmek |
126222 |
- modified. This parameter is ignored for x, r,
|
|
Zbigniew Jędrzejewski-Szmek |
126222 |
- R, L lines.</para>
|
|
Zbigniew Jędrzejewski-Szmek |
126222 |
+ directories, 0644 for all other file objects.
|
|
Zbigniew Jędrzejewski-Szmek |
126222 |
+ For <varname>z</varname>, <varname>Z</varname>
|
|
Zbigniew Jędrzejewski-Szmek |
126222 |
+ lines, if omitted or when set to
|
|
Zbigniew Jędrzejewski-Szmek |
126222 |
+ <literal>-</literal>, the file access mode
|
|
Zbigniew Jędrzejewski-Szmek |
126222 |
+ will not be modified. This parameter is
|
|
Zbigniew Jędrzejewski-Szmek |
126222 |
+ ignored for <varname>x</varname>,
|
|
Zbigniew Jędrzejewski-Szmek |
126222 |
+ <varname>r</varname>, <varname>R</varname>,
|
|
Zbigniew Jędrzejewski-Szmek |
126222 |
+ <varname>L</varname> lines.</para>
|
|
Zbigniew Jędrzejewski-Szmek |
126222 |
</refsect2>
|
|
Zbigniew Jędrzejewski-Szmek |
126222 |
|
|
Zbigniew Jędrzejewski-Szmek |
126222 |
<refsect2>
|
|
Zbigniew Jędrzejewski-Szmek |
126222 |
@@ -321,10 +337,15 @@ L /tmp/foobar - - - - /dev/null</programlisting>
|
|
Zbigniew Jędrzejewski-Szmek |
126222 |
<para>The user and group to use for this file
|
|
Zbigniew Jędrzejewski-Szmek |
126222 |
or directory. This may either be a numeric
|
|
Zbigniew Jędrzejewski-Szmek |
126222 |
user/group ID or a user or group name. If
|
|
Zbigniew Jędrzejewski-Szmek |
126222 |
- omitted or when set to -, the default 0 (root)
|
|
Zbigniew Jędrzejewski-Szmek |
126222 |
- is used. For z, Z lines, when omitted or when set to -,
|
|
Zbigniew Jędrzejewski-Szmek |
126222 |
- the file ownership will not be modified.
|
|
Zbigniew Jędrzejewski-Szmek |
126222 |
- These parameters are ignored for x, r, R, L lines.</para>
|
|
Zbigniew Jędrzejewski-Szmek |
126222 |
+ omitted or when set to <literal>-</literal>,
|
|
Zbigniew Jędrzejewski-Szmek |
126222 |
+ the default 0 (root) is used. For
|
|
Zbigniew Jędrzejewski-Szmek |
126222 |
+ <varname>z</varname>, <varname>Z</varname>
|
|
Zbigniew Jędrzejewski-Szmek |
126222 |
+ lines, when omitted or when set to -, the file
|
|
Zbigniew Jędrzejewski-Szmek |
126222 |
+ ownership will not be modified. These
|
|
Zbigniew Jędrzejewski-Szmek |
126222 |
+ parameters are ignored for
|
|
Zbigniew Jędrzejewski-Szmek |
126222 |
+ <varname>x</varname>, <varname>r</varname>,
|
|
Zbigniew Jędrzejewski-Szmek |
126222 |
+ <varname>R</varname>, <varname>L</varname>
|
|
Zbigniew Jędrzejewski-Szmek |
126222 |
+ lines.</para>
|
|
Zbigniew Jędrzejewski-Szmek |
126222 |
</refsect2>
|
|
Zbigniew Jędrzejewski-Szmek |
126222 |
|
|
Zbigniew Jędrzejewski-Szmek |
126222 |
<refsect2>
|
|
Zbigniew Jędrzejewski-Szmek |
126222 |
@@ -357,28 +378,37 @@ L /tmp/foobar - - - - /dev/null</programlisting>
|
|
Zbigniew Jędrzejewski-Szmek |
126222 |
<para>When the age is set to zero, the files are cleaned
|
|
Zbigniew Jędrzejewski-Szmek |
126222 |
unconditionally.</para>
|
|
Zbigniew Jędrzejewski-Szmek |
126222 |
|
|
Zbigniew Jędrzejewski-Szmek |
126222 |
- <para>The age field only applies to lines starting with
|
|
Zbigniew Jędrzejewski-Szmek |
126222 |
- d, D and x. If omitted or set to -, no automatic clean-up
|
|
Zbigniew Jędrzejewski-Szmek |
126222 |
- is done.</para>
|
|
Zbigniew Jędrzejewski-Szmek |
126222 |
+ <para>The age field only applies to lines
|
|
Zbigniew Jędrzejewski-Szmek |
126222 |
+ starting with <varname>d</varname>,
|
|
Zbigniew Jędrzejewski-Szmek |
126222 |
+ <varname>D</varname>, and
|
|
Zbigniew Jędrzejewski-Szmek |
126222 |
+ <varname>x</varname>. If omitted or set to
|
|
Zbigniew Jędrzejewski-Szmek |
126222 |
+ <literal>-</literal>, no automatic clean-up is
|
|
Zbigniew Jędrzejewski-Szmek |
126222 |
+ done.</para>
|
|
Zbigniew Jędrzejewski-Szmek |
126222 |
|
|
Zbigniew Jędrzejewski-Szmek |
126222 |
<para>If the age field starts with a tilde
|
|
Zbigniew Jędrzejewski-Szmek |
126222 |
- character (~), the clean-up is only applied to
|
|
Zbigniew Jędrzejewski-Szmek |
126222 |
- files and directories one level inside the
|
|
Zbigniew Jędrzejewski-Szmek |
126222 |
- directory specified, but not the files and
|
|
Zbigniew Jędrzejewski-Szmek |
126222 |
- directories immediately inside it.</para>
|
|
Zbigniew Jędrzejewski-Szmek |
126222 |
+ character <literal>~</literal>, the clean-up
|
|
Zbigniew Jędrzejewski-Szmek |
126222 |
+ is only applied to files and directories one
|
|
Zbigniew Jędrzejewski-Szmek |
126222 |
+ level inside the directory specified, but not
|
|
Zbigniew Jędrzejewski-Szmek |
126222 |
+ the files and directories immediately inside
|
|
Zbigniew Jędrzejewski-Szmek |
126222 |
+ it.</para>
|
|
Zbigniew Jędrzejewski-Szmek |
126222 |
</refsect2>
|
|
Zbigniew Jędrzejewski-Szmek |
126222 |
|
|
Zbigniew Jędrzejewski-Szmek |
126222 |
<refsect2>
|
|
Zbigniew Jędrzejewski-Szmek |
126222 |
<title>Argument</title>
|
|
Zbigniew Jędrzejewski-Szmek |
126222 |
|
|
Zbigniew Jędrzejewski-Szmek |
126222 |
- <para>For L lines determines the destination
|
|
Zbigniew Jędrzejewski-Szmek |
126222 |
- path of the symlink. For c, b determines the
|
|
Zbigniew Jędrzejewski-Szmek |
126222 |
+ <para>For <varname>L</varname> lines
|
|
Zbigniew Jędrzejewski-Szmek |
126222 |
+ determines the destination path of the
|
|
Zbigniew Jędrzejewski-Szmek |
126222 |
+ symlink. For <varname>c</varname>,
|
|
Zbigniew Jędrzejewski-Szmek |
126222 |
+ <varname>b</varname> determines the
|
|
Zbigniew Jędrzejewski-Szmek |
126222 |
major/minor of the device node, with major and
|
|
Zbigniew Jędrzejewski-Szmek |
126222 |
- minor formatted as integers, separated by :,
|
|
Zbigniew Jędrzejewski-Szmek |
126222 |
- e.g. "1:3". For f, F, w may be used to specify
|
|
Zbigniew Jędrzejewski-Szmek |
126222 |
- a short string that is written to the file,
|
|
Zbigniew Jędrzejewski-Szmek |
126222 |
- suffixed by a newline. Ignored for all other
|
|
Zbigniew Jędrzejewski-Szmek |
126222 |
- lines.</para>
|
|
Zbigniew Jędrzejewski-Szmek |
126222 |
+ minor formatted as integers, separated by
|
|
Zbigniew Jędrzejewski-Szmek |
126222 |
+ <literal>:</literal>, e.g.
|
|
Zbigniew Jędrzejewski-Szmek |
126222 |
+ <literal>1:3</literal>. For
|
|
Zbigniew Jędrzejewski-Szmek |
126222 |
+ <varname>f</varname>, <varname>F</varname>,
|
|
Zbigniew Jędrzejewski-Szmek |
126222 |
+ and <varname>w</varname> may be used to
|
|
Zbigniew Jędrzejewski-Szmek |
126222 |
+ specify a short string that is written to the
|
|
Zbigniew Jędrzejewski-Szmek |
126222 |
+ file, suffixed by a newline. Ignored for all
|
|
Zbigniew Jędrzejewski-Szmek |
126222 |
+ other lines.</para>
|
|
Zbigniew Jędrzejewski-Szmek |
126222 |
</refsect2>
|
|
Zbigniew Jędrzejewski-Szmek |
126222 |
|
|
Zbigniew Jędrzejewski-Szmek |
126222 |
</refsect1>
|
|
Zbigniew Jędrzejewski-Szmek |
126222 |
diff --git a/units/systemd-tmpfiles-setup.service.in b/units/systemd-tmpfiles-setup.service.in
|
|
Zbigniew Jędrzejewski-Szmek |
126222 |
index 6f98063..3405e28 100644
|
|
Zbigniew Jędrzejewski-Szmek |
126222 |
--- a/units/systemd-tmpfiles-setup.service.in
|
|
Zbigniew Jędrzejewski-Szmek |
126222 |
+++ b/units/systemd-tmpfiles-setup.service.in
|
|
Zbigniew Jędrzejewski-Szmek |
126222 |
@@ -14,6 +14,7 @@ Conflicts=shutdown.target
|
|
Zbigniew Jędrzejewski-Szmek |
126222 |
After=systemd-readahead-collect.service systemd-readahead-replay.service local-fs.target
|
|
Zbigniew Jędrzejewski-Szmek |
126222 |
Before=sysinit.target shutdown.target
|
|
Zbigniew Jędrzejewski-Szmek |
126222 |
ConditionDirectoryNotEmpty=|/usr/lib/tmpfiles.d
|
|
Zbigniew Jędrzejewski-Szmek |
126222 |
+ConditionDirectoryNotEmpty=|/lib/tmpfiles.d
|
|
Zbigniew Jędrzejewski-Szmek |
126222 |
ConditionDirectoryNotEmpty=|/usr/local/lib/tmpfiles.d
|
|
Zbigniew Jędrzejewski-Szmek |
126222 |
ConditionDirectoryNotEmpty=|/etc/tmpfiles.d
|
|
Zbigniew Jędrzejewski-Szmek |
126222 |
ConditionDirectoryNotEmpty=|/run/tmpfiles.d
|