]>
Commit | Line | Data |
---|---|---|
14228c0d | 1 | '\" t |
f47781d8 | 2 | .TH "SYSTEMD\-TMPFILES" "8" "" "systemd 218" "systemd-tmpfiles" |
14228c0d MB |
3 | .\" ----------------------------------------------------------------- |
4 | .\" * Define some portability stuff | |
5 | .\" ----------------------------------------------------------------- | |
6 | .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | |
7 | .\" http://bugs.debian.org/507673 | |
8 | .\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html | |
9 | .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | |
10 | .ie \n(.g .ds Aq \(aq | |
11 | .el .ds Aq ' | |
12 | .\" ----------------------------------------------------------------- | |
13 | .\" * set default formatting | |
14 | .\" ----------------------------------------------------------------- | |
15 | .\" disable hyphenation | |
16 | .nh | |
17 | .\" disable justification (adjust text to left margin only) | |
18 | .ad l | |
19 | .\" ----------------------------------------------------------------- | |
20 | .\" * MAIN CONTENT STARTS HERE * | |
21 | .\" ----------------------------------------------------------------- | |
22 | .SH "NAME" | |
23 | 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 and temporary files and directories | |
24 | .SH "SYNOPSIS" | |
60f067b4 JS |
25 | .HP \w'\fBsystemd\-tmpfiles\fR\ 'u |
26 | \fBsystemd\-tmpfiles\fR [OPTIONS...] [\fICONFIGFILE\fR...] | |
14228c0d MB |
27 | .PP |
28 | systemd\-tmpfiles\-setup\&.service | |
29 | .PP | |
30 | systemd\-tmpfiles\-setup\-dev\&.service | |
31 | .PP | |
32 | systemd\-tmpfiles\-clean\&.service | |
33 | .PP | |
34 | systemd\-tmpfiles\-clean\&.timer | |
35 | .SH "DESCRIPTION" | |
36 | .PP | |
37 | \fBsystemd\-tmpfiles\fR | |
60f067b4 | 38 | creates, deletes, and cleans up volatile and temporary files and directories, based on the configuration file format and location specified in |
14228c0d MB |
39 | \fBtmpfiles.d\fR(5)\&. |
40 | .PP | |
41 | If invoked with no arguments, it applies all directives from all configuration files\&. If one or more filenames are passed on the command line, only the directives in these files are applied\&. If only the basename of a configuration file is specified, all configuration directories as specified in | |
42 | \fBtmpfiles.d\fR(5) | |
43 | are searched for a matching file\&. | |
44 | .SH "OPTIONS" | |
45 | .PP | |
46 | The following options are understood: | |
47 | .PP | |
48 | \fB\-\-create\fR | |
49 | .RS 4 | |
60f067b4 JS |
50 | If this option is passed, all files and directories marked with |
51 | \fIf\fR, | |
52 | \fIF\fR, | |
53 | \fIw\fR, | |
54 | \fId\fR, | |
55 | \fID\fR, | |
56 | \fIp\fR, | |
57 | \fIL\fR, | |
58 | \fIc\fR, | |
59 | \fIb\fR, | |
60 | \fIm\fR | |
61 | in the configuration files are created or written to\&. Files and directories marked with | |
62 | \fIz\fR, | |
63 | \fIZ\fR, | |
64 | \fIm\fR | |
65 | have their ownership, access mode and security labels set\&. | |
14228c0d MB |
66 | .RE |
67 | .PP | |
68 | \fB\-\-clean\fR | |
69 | .RS 4 | |
70 | If this option is passed, all files and directories with an age parameter configured will be cleaned up\&. | |
71 | .RE | |
72 | .PP | |
73 | \fB\-\-remove\fR | |
74 | .RS 4 | |
60f067b4 JS |
75 | If this option is passed, all files and directories marked with |
76 | \fIr\fR, | |
77 | \fIR\fR | |
78 | in the configuration files are removed\&. | |
14228c0d MB |
79 | .RE |
80 | .PP | |
60f067b4 JS |
81 | \fB\-\-boot\fR |
82 | .RS 4 | |
83 | Also execute lines with an exclamation mark\&. | |
84 | .RE | |
85 | .PP | |
86 | \fB\-\-prefix=\fR\fB\fIpath\fR\fR | |
14228c0d MB |
87 | .RS 4 |
88 | Only apply rules that apply to paths with the specified prefix\&. This option can be specified multiple times\&. | |
89 | .RE | |
90 | .PP | |
60f067b4 | 91 | \fB\-\-exclude\-prefix=\fR\fB\fIpath\fR\fR |
14228c0d MB |
92 | .RS 4 |
93 | Ignore rules that apply to paths with the specified prefix\&. This option can be specified multiple times\&. | |
94 | .RE | |
95 | .PP | |
60f067b4 JS |
96 | \fB\-\-root=\fR\fB\fIroot\fR\fR |
97 | .RS 4 | |
98 | Takes a directory path as an argument\&. All paths will be prefixed with the given alternate | |
99 | \fIroot\fR | |
100 | path, including config search paths\&. | |
101 | .RE | |
102 | .PP | |
103 | \fB\-h\fR, \fB\-\-help\fR | |
104 | .RS 4 | |
105 | Print a short help text and exit\&. | |
106 | .RE | |
107 | .PP | |
108 | \fB\-\-version\fR | |
14228c0d | 109 | .RS 4 |
60f067b4 | 110 | Print a short version string and exit\&. |
14228c0d MB |
111 | .RE |
112 | .PP | |
113 | It is possible to combine | |
114 | \fB\-\-create\fR, | |
115 | \fB\-\-clean\fR, and | |
116 | \fB\-\-remove\fR | |
117 | in one invocation\&. For example, during boot the following command line is executed to ensure that all temporary and volatile directories are removed and created according to the configuration file: | |
118 | .sp | |
119 | .if n \{\ | |
120 | .RS 4 | |
121 | .\} | |
122 | .nf | |
123 | systemd\-tmpfiles \-\-remove \-\-create | |
124 | .fi | |
125 | .if n \{\ | |
126 | .RE | |
127 | .\} | |
128 | .SH "EXIT STATUS" | |
129 | .PP | |
60f067b4 | 130 | On success, 0 is returned, a non\-zero failure code otherwise\&. |
14228c0d MB |
131 | .SH "SEE ALSO" |
132 | .PP | |
133 | \fBsystemd\fR(1), | |
134 | \fBtmpfiles.d\fR(5) |