[Pkg-systemd-maintainers] Bug#728816: Bug#728816: systemd-tmpfiles not cleaning /tmp is symlink
Michael Stapelberg
stapelberg at debian.org
Sat Nov 9 10:01:10 GMT 2013
Hi Ritesh,
Ritesh Raj Sarraf <rrs at debian.org> writes:
> If /tmp is a symlink, it turns out that systmed is not doing a
> cleanup.
Are you 100% sure that this is not caused by your configuration
modification below?
> --------------
> systemd-delta:
> --------------
> [OVERRIDDEN] /etc/tmpfiles.d/tmp.conf → /usr/lib/tmpfiles.d/tmp.conf
>
> --- /usr/lib/tmpfiles.d/tmp.conf 2013-09-23 17:14:17.000000000 +0530
> +++ /etc/tmpfiles.d/tmp.conf 2013-08-30 16:55:13.258434369 +0530
> @@ -1,18 +1,12 @@
> # This file is part of systemd.
> #
> # systemd is free software; you can redistribute it and/or modify it
> -# under the terms of the GNU Lesser General Public License as published by
> -# the Free Software Foundation; either version 2.1 of the License, or
> +# under the terms of the GNU General Public License as published by
> +# the Free Software Foundation; either version 2 of the License, or
> # (at your option) any later version.
>
> # See tmpfiles.d(5) for details
>
> # Clear tmp directories separately, to make them easier to override
> -D /tmp 1777 root root -
> -#d /var/tmp 1777 root root 30d
> -
> -# Exclude namespace mountpoints created with PrivateTmp=yes
> -x /tmp/systemd-private-*
> -x /var/tmp/systemd-private-*
> -X /tmp/systemd-private-*/tmp
> -X /var/tmp/systemd-private-*/tmp
> +#D /tmp 1777 root root -
Commenting out that line disables /tmp cleanup.
In case the problem still persists after you fix the configuration, can
you please attach /tmp/strace.log after running the following command?
strace -f -o /tmp/strace.log -s 2048 systemd-tmpfiles --clean
Thanks.
--
Best regards,
Michael
More information about the Pkg-systemd-maintainers
mailing list