Opened 7 years ago

Closed 7 years ago

#4181 closed task (fixed)

systemd: Expand discussion of Automatic File Creation and Deletion

Reported by: bdubbs@… Owned by: bdubbs@…
Priority: normal Milestone: 8.2
Component: Book Version: SVN
Severity: normal Keywords:
Cc:

Description

In the systemd version of the book, section 7.10.4. Configuring Automatic File Creation and Deletion, we need a little more detail, perhaps with an example.

In my case, I wanted to change the way files in /tmp are removed. To do this, I needed to create /etc/tempfiles.d; cp /usr/lib/tmpfiles.d/tmp.conf /etc/tempfiles.d; and edit that new tmp.conf file.

Note that the offending line in this case was

q /tmp 1777 root root 10d

Note that the config item q is not exactly intuitive. The man page says q is similar to v and v means "Create a subvolume ..." or something similar to d and mentions 'quota groups'. Buried in there is that statement " On non-btrfs file systems, this line type is identical to d"

Change History (3)

comment:1 by bdubbs@…, 7 years ago

Summary: Expand discussion of Automatic File Creation and Deletionsystemd: Expand discussion of Automatic File Creation and Deletion

comment:2 by bdubbs@…, 7 years ago

Owner: changed from lfs-book@… to bdubbs@…
Status: newassigned

comment:3 by bdubbs@…, 7 years ago

Resolution: fixed
Status: assignedclosed

Fixed at revision 11340.

Note: See TracTickets for help on using tickets.