From: Brandon Philips Date: Thu, 4 Nov 2010 20:31:07 +0000 (-0400) Subject: man/tmpfiles.d.xml: add a manpage for tmpfiles.d X-Git-Tag: v12~83 X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=elogind.git;a=commitdiff_plain;h=4149f86d816fc0fef41d35de5beb09bfe81e0d6a;hp=1e85f63615d0b592686fba810157d6b5963b2af9 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 --- diff --git a/Makefile.am b/Makefile.am index 03a6a4e59..456553fa5 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 000000000..5ff53ef76 --- /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 + + + +