systemd upstream so far shipped a tmpfiles snippet that causes automatic time-based cleanups of /var/cache/man after 30d. This has been in place since old rc.sysinit already did this. However, given that the man-db RPM actually owns /var/cache/man, and that man-db is actually a non-essential package for minimal systems the clean-up logic should really move into the man-db package. The line currently included in systemd's /usr/lib/tmpfiles.d/ snippets looks like this: d /var/cache/man - - - 30d Hence, please adopt this line and add it to a tmpfiles snippet included in the man-db package, maybe /usr/lib/tmpfiles.d/man-db.conf. Also, please consider submitting/shipping this upstream, as all major distributions have adopted systemd now, and it would make things a lot easier if all distributions could get this right. Note that the next systemd upload to rawhide will have this line removed, at which point no automatic clean-up takes place anymore, until this is readded to man-db! Thanks!
Also see upstream commit: http://cgit.freedesktop.org/systemd/systemd/commit/?id=7613d0aec98d86c449aad7932116a2e7d67f8507
Thanks. I'll take care of this upstream.
commit a8c6b2b99b247f147e00acfc9b4f590de96463c8 Author: Colin Watson <cjwatson> Date: Tue Jun 17 13:13:54 2014 +0100 Add systemd tmpfiles snippet to clean up old cat files after a week Fixes Fedora bug #1110274. * configure.ac: Accept --with-systemdtmpfilesdir option. (AC_CONFIG_FILES): Add init/Makefile and init/systemd/Makefile. * Makefile.am (SUBDIRS): Add init. * init/Makefile.am: New file. * init/systemd/Makefile.am: New file. * init/systemd/man-db.conf: New file. * .gitignore: Add init/Makefile and init/systemd/Makefile.
Thanks Colin, patched in rawhide.
man-db.conf has UID and GID swapped; it should be: d /var/cache/man 2755 root man 1w I.e,, GID 'man', to go along with the setgid. The way it is now, there's a [FAILED] at boot, from systemd-tmpfiles-setup.service, about non-existent UID 'man'. Also, perhaps the /var/cache/man entry in var.tmp should be removed?
In Debian it's man:root, not root:man. You're welcome to patch this for Fedora of course.
Thanks Bruce. https://lists.fedoraproject.org/pipermail/scm-commits/Week-of-Mon-20140630/1297781.html > Also, perhaps the /var/cache/man entry in var.tmp should be removed? where is this file located? Jan