From 4149f86d816fc0fef41d35de5beb09bfe81e0d6a Mon Sep 17 00:00:00 2001 From: Brandon Philips Date: Thu, 4 Nov 2010 16:31:07 -0400 Subject: [PATCH] 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: Brandon Philips --- Makefile.am | 3 +- man/tmpfiles.d.xml | 149 +++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 151 insertions(+), 1 deletion(-) create mode 100644 man/tmpfiles.d.xml diff --git a/Makefile.am b/Makefile.am index 03a6a4e5..456553fa 100644 --- a/Makefile.am +++ b/Makefile.am @@ -486,7 +486,8 @@ MANPAGES = \ man/halt.8 \ man/shutdown.8 \ man/pam_systemd.8 \ - man/systemd.conf.5 + man/systemd.conf.5 \ + man/tmpfiles.d.5 MANPAGES_ALIAS = \ man/reboot.8 \ diff --git a/man/tmpfiles.d.xml b/man/tmpfiles.d.xml new file mode 100644 index 00000000..5ff53ef7 --- /dev/null +++ b/man/tmpfiles.d.xml @@ -0,0 +1,149 @@ + + + + + + + + tmpfiles.d + systemd + + + + Documentation + Brandon + Philips + brandon@ifup.org + + + + + + tmpfiles.d + 5 + + + + tmpfiles.d + configuration for creation, deletion and cleaning of tmpfiles + + + + Description + + systemd uses /etc/tmpfiles.d/ to describe the creation, cleaning and removal of temporary files and directories +which usually reside in /var/run or /tmp). +Each configuration file is named in the style of +/etc/tmpfiles.d/<program>.conf + + + + + Configuration Format + + The configuration format is one line per path containing +action, mode, ownership and age fields: + + type path mode uid gid age +d /var/run/user 0755 root root 10d + + + + type + + + f + create a file + + + + F + truncate a file + + + + d + create a directory + + + + D + truncate a directory + + + + x + ignore the path + + + + r + remove the path + + + + R + recursively remove the path + + + + + + age + 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: + + sec + s + min + hr + h + d + w + msec + ms + m + usec + us + + + + + + + + Example + + /etc/tmpfiles.d/screen.conf example + screen needs two directories created at boot with specific modes and ownership. + + d /var/run/screens 1777 root root 10d +d /var/run/uscreens 0755 root root 10d + + + + + + See Also + + systemd1 + + + + -- 2.39.5