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=Daily Cleanup of Temporary Directories Documentation=man:tmpfiles.d(5) man:systemd-tmpfiles(8) [Timer] OnBootSec=15min OnUnitActiveSec=1d Am I missing something? Is there a better way with a systemd based systemd to have these files removed daily?
On 02/09/2016 08:05 AM, Kai Bojens wrote:> It was my understanding that these temp-files should have been removed daily as > it is stated here:Not all files, just those mentioned in /etc/tmpfiles.d/*
On 09.02.2016 17:05, Kai Bojens wrote:> 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=Daily Cleanup of Temporary Directories > Documentation=man:tmpfiles.d(5) man:systemd-tmpfiles(8) > > [Timer] > OnBootSec=15min > OnUnitActiveSec=1d > > Am I missing something? Is there a better way with a systemd based systemd to > have these files removed daily?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:>> Am I missing something? Is there a better way with a systemd based systemd to >> have these files removed daily?> Have you checked which process creates the files and doesn't apparently > clean them up properly by checking the contents for example?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'.