[arch-general] tmp files no longer removed

David Benfell benfell at parts-unknown.org
Thu Jun 21 05:20:57 EDT 2012


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 06/21/12 02:11, Kevin Chadwick wrote:
> 
> The ability I would certainly agree with but has it been removed? 
> Is the question, Where is the best place to add /bin/rm to init 
> nowadays?
> 
Elsewhere in this thread, someone mentions tmpfiles.d.

There is a configuration file in /usr/lib/tmpfiles.d named tmp.conf
which can be copied to /etc/conf.d and modified as needed.

- From what I've been able to piece together, one can then run
"systemd-tmpfiles --clean" in a cron job. But in a Linode with both
limited memory and limited disk, this seems like a really good idea.

It's hard to tell if this actually works from a directory listing
because unless you specify the right options, it won't tell you the
last date since any of these files have been accessed.

- -- 
David Benfell
benfell at parts-unknown.org


-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.19 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iQIcBAEBAgAGBQJP4ud4AAoJELT202JKF+xp1DgQAKv1Rv4uXe7Ro+HEvrIE5vdk
WjZUaBKzDkbFuSe3yYkcKZv0y9iBlDX3gI+67sDdr7C4pSTnJPEVbfqdl1BPFPQW
X/qS6u4LPvLXByAnnO7lnz8FgJjSEdy21EdAf5xrfIA73FP4T1nOra9VEIJ5JUHn
IDUFLSw0avMCK/0SZBsO4AY8ZaG9MpU51/SW7ckC6JUkngdxC0nyk3oSGokYhmhX
D0YSHXn/c12jxUA4j4LrZyfomGNk2RKjnrHOUUKuamGatONk87wsKhHmTjUDnIZN
EnATwRNPyrXTpLzSm/inYxfgUeotFtcIq1d4PkdQKvAF3H11By0hmqQqx8tNyBbr
0KKNA1y/cxE/nAAefeshdKhLWZhqz7zpcrrIMtuke9hgq+VWKCtJoyVGJuy/mjBU
LzrPsWJ7PhN2ozMAVyF5cKP3gyKwmTKO5q3qL+aFeE5DaXpiVcQbQv5eBF1PxHv1
PG3JYOiJOXFIzkKF3f5fOvAH8Q8pMSnKICu58y5MuZog2I9SX98bCifrl8cxkzX4
g9XkeqvRQQdDVG6Sr7S007If//hx2Gds+t3X3k4lCEk3+v5f8dkYPqKs0XBnt37G
3lFi+ORrMdCmsRF1mFboA1ODc2F1nrotXu/njM3GXkxUmlXcqD0wnlb5LS+D+nE5
SkcJ7RL82KOz8YEzrQT1
=qGTU
-----END PGP SIGNATURE-----


More information about the arch-general mailing list