Commit 4149f86d authored by Brandon Philips's avatar Brandon Philips Committed by Kay Sievers
Browse files

man/tmpfiles.d.xml: add a manpage for tmpfiles.d

Initial commit of a tmpfiles.d manpage.

I ran it through xmllint but I don't know how to make it look pretty
like the rest of the xml files. :-P
Signed-off-by: default avatarBrandon Philips <>
parent 1e85f636
......@@ -486,7 +486,8 @@ MANPAGES = \
man/halt.8 \
man/shutdown.8 \
man/pam_systemd.8 \
man/systemd.conf.5 \
man/reboot.8 \
<?xml version="1.0"?>
<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.2//EN" "">
This file is part of systemd.
Copyright 2010 Brandon Philips
systemd is free software; you can redistribute it and/or modify it
under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
systemd is distributed in the hope that it will be useful, but
WITHOUT ANY WARRANTY; without even the implied warranty of
General Public License for more details.
You should have received a copy of the GNU General Public License
along with systemd; If not, see <>.
<refentry id="tmpfiles.d">
<refpurpose>configuration for creation, deletion and cleaning of tmpfiles</refpurpose>
<para><command>systemd</command> uses <filename>/etc/tmpfiles.d/</filename> to describe the creation, cleaning and removal of temporary files and directories
which usually reside in <filename>/var/run</filename> or <filename>/tmp</filename>).
Each configuration file is named in the style of
<title>Configuration Format</title>
<para>The configuration format is one line per path containing
action, mode, ownership and age fields:</para>
<programlisting>type path mode uid gid age
d /var/run/user 0755 root root 10d
<listitem><para>create a file</para></listitem>
<listitem><para>truncate a file</para></listitem>
<listitem><para>create a directory</para></listitem>
<listitem><para>truncate a directory</para></listitem>
<listitem><para>ignore the path</para></listitem>
<listitem><para>remove the path</para></listitem>
<listitem><para>recursively remove the path</para></listitem>
<para>The date field, when set, is used to decide what files to delete when cleaning. If a file or directory is older than the current time minus the age field it is deleted. The field format is an integer followed by one of the following postfixes:</para>
<title>/etc/tmpfiles.d/screen.conf example</title>
<para><command>screen</command> needs two directories created at boot with specific modes and ownership.</para>
<programlisting>d /var/run/screens 1777 root root 10d
d /var/run/uscreens 0755 root root 10d
<title>See Also</title>
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment