]> git.proxmox.com Git - systemd.git/blame - man/systemd-tmpfiles.html
Imported Upstream version 208
[systemd.git] / man / systemd-tmpfiles.html
CommitLineData
663996b3
MS
1<html><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"><title>systemd-tmpfiles</title><meta name="generator" content="DocBook XSL Stylesheets V1.78.1"></head><body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><style>
2 a.headerlink {
3 color: #c60f0f;
4 font-size: 0.8em;
5 padding: 0 4px 0 4px;
6 text-decoration: none;
7 visibility: hidden;
8 }
9
10 a.headerlink:hover {
11 background-color: #c60f0f;
12 color: white;
13 }
14
15 h1:hover > a.headerlink, h2:hover > a.headerlink, h3:hover > a.headerlink, dt:hover > a.headerlink {
16 visibility: visible;
17 }
18 </style><a href="index.html">Index </a>·
19 <a href="systemd.directives.html">Directives </a>·
20 <a href="../python-systemd/index.html">Python </a>·
21 <a href="../libudev/index.html">libudev </a>·
14228c0d
MB
22 <a href="../libudev/index.html">gudev </a><span style="float:right">systemd 208</span><hr><div class="refentry"><a name="systemd-tmpfiles"></a><div class="titlepage"></div><div class="refnamediv"><h2>Name</h2><p>systemd-tmpfiles, systemd-tmpfiles-setup.service, systemd-tmpfiles-setup-dev.service, systemd-tmpfiles-clean.service, systemd-tmpfiles-clean.timer — Creates, deletes and cleans up volatile
23 and temporary files and directories</p></div><div class="refsynopsisdiv"><h2>Synopsis</h2><div class="cmdsynopsis"><p><code class="command">systemd-tmpfiles [OPTIONS...] [CONFIGURATION FILE...]</code> </p></div><p><code class="filename">systemd-tmpfiles-setup.service</code></p><p><code class="filename">systemd-tmpfiles-setup-dev.service</code></p><p><code class="filename">systemd-tmpfiles-clean.service</code></p><p><code class="filename">systemd-tmpfiles-clean.timer</code></p></div><div class="refsect1"><a name="idm274679488336"></a><h2 id="Description">Description<a class="headerlink" title="Permalink to this headline" href="#Description">¶</a></h2><p><span class="command"><strong>systemd-tmpfiles</strong></span> creates,
663996b3
MS
24 deletes and cleans up volatile and temporary files and
25 directories, based on the configuration file format and
26 location specified in <a href="tmpfiles.d.html"><span class="citerefentry"><span class="refentrytitle">tmpfiles.d</span>(5)</span></a>.</p><p>If invoked with no arguments, it applies all
27 directives from all configuration files. If one or
14228c0d 28 more filenames are passed on the command line, only
663996b3
MS
29 the directives in these files are applied. If only
30 the basename of a configuration file is specified,
14228c0d 31 all configuration directories as specified in <a href="tmpfiles.d.html"><span class="citerefentry"><span class="refentrytitle">tmpfiles.d</span>(5)</span></a> are searched for a matching file.</p></div><div class="refsect1"><a name="idm274679903344"></a><h2 id="Options">Options<a class="headerlink" title="Permalink to this headline" href="#Options">¶</a></h2><p>The following options are understood:</p><div class="variablelist"><dl class="variablelist"><dt id="--create"><span class="term"><code class="option">--create</code></span><a class="headerlink" title="Permalink to this term" href="#--create">¶</a></dt><dd><p>If this option is passed, all
663996b3
MS
32 files and directories marked with f,
33 F, d, D in the configuration files are
34 created. Files and directories marked with z,
35 Z have their ownership, access mode and security
36 labels set.</p></dd><dt id="--clean"><span class="term"><code class="option">--clean</code></span><a class="headerlink" title="Permalink to this term" href="#--clean">¶</a></dt><dd><p>If this option is
14228c0d 37 passed, all files and directories with
663996b3
MS
38 an age parameter configured will be
39 cleaned up.</p></dd><dt id="--remove"><span class="term"><code class="option">--remove</code></span><a class="headerlink" title="Permalink to this term" href="#--remove">¶</a></dt><dd><p>If this option is
14228c0d 40 passed, all files and directories marked
663996b3
MS
41 with r, R in the configuration files
42 are removed.</p></dd><dt id="--prefix=PATH"><span class="term"><code class="option">--prefix=PATH</code></span><a class="headerlink" title="Permalink to this term" href="#--prefix=PATH">¶</a></dt><dd><p>Only apply rules that
43 apply to paths with the specified
14228c0d
MB
44 prefix. This option can be specified
45 multiple times.</p></dd><dt id="--exclude-prefix=PATH"><span class="term"><code class="option">--exclude-prefix=PATH</code></span><a class="headerlink" title="Permalink to this term" href="#--exclude-prefix=PATH">¶</a></dt><dd><p>Ignore rules that
46 apply to paths with the specified
47 prefix. This option can be specified
48 multiple times.</p></dd><dt id="--help"><span class="term"><code class="option">--help</code></span><a class="headerlink" title="Permalink to this term" href="#--help">¶</a></dt><dd><p>Prints a short help
663996b3
MS
49 text and exits.</p></dd></dl></div><p>It is possible to combine
50 <code class="option">--create</code>, <code class="option">--clean</code>,
51 and <code class="option">--remove</code> in one invocation. For
52 example, during boot the following command line is
53 executed to ensure that all temporary and volatile
54 directories are removed and created according to the
14228c0d
MB
55 configuration file:</p><pre class="programlisting">systemd-tmpfiles --remove --create</pre></div><div class="refsect1"><a name="idm274679651248"></a><h2 id="Exit status">Exit status<a class="headerlink" title="Permalink to this headline" href="#Exit%20status">¶</a></h2><p>On success 0 is returned, a non-zero failure
56 code otherwise.</p></div><div class="refsect1"><a name="idm274679064944"></a><h2 id="See Also">See Also<a class="headerlink" title="Permalink to this headline" href="#See%20Also">¶</a></h2><p>
663996b3 57 <a href="systemd.html"><span class="citerefentry"><span class="refentrytitle">systemd</span>(1)</span></a>,
14228c0d 58 <a href="tmpfiles.d.html"><span class="citerefentry"><span class="refentrytitle">tmpfiles.d</span>(5)</span></a>
663996b3 59 </p></div></div></body></html>