/tmp Full With Systemd-private*
CentOS: 7.1.1503
I have a problem with systemd which somehow manages to fill /tmp up with a lot of files. These files obviously are from the Apache server and don’t pose a problem per se. The problem is that these files don’t get removed daily:
du -hs systemd-private-*
7,7G systemd-private-mpg7rm
0 systemd-private-olXnby
0 systemd-private-qvJJ5o
0 systemd-private-Rs2nBv
It was my understanding that these temp-files should have been removed daily as it is stated here:
$: grep -v ‘^#’ /usr/lib/systemd/system/systemd-tmpfiles-clean.timer
[Unit]
Description
4 thoughts on - /tmp Full With Systemd-private*
Not all files, just those mentioned in /etc/tmpfiles.d/*
Have you checked which process creates the files and doesn’t apparently clean them up properly by checking the contents for example?
Regards,
Dennis
Am 09.02.2016 um 19:34 schrieb Dennis Jacobfeuerborn:
Yes. Those files obviously are created by web applications (PHP) and are zip files. These web application are not under my control. At the moment I am not quite sure why they are generated. They should, however, be removed daily. I’d like to solve this with systemd’s own tools instead of searching for some ‘tmp-reaper’.
At the risk of repeating myself, “systemd’s own tools” ARE a “tmp-reaper.”
From “man systemd-tmpfiles-clean.timer”:
DESCRIPTION
systemd-tmpfiles creates, deletes, and cleans up volatile and temporary files and directories, based on the configuration file format and location specified in tmpfiles.d(5).