Comment 17 for bug 531880

Revision history for this message
In , Steve (steve-redhat-bugs) wrote :

(In reply to comment #15)
> Hi all, I'm running FC14 Beta, with all testing updates installed. I just
> thought I'd mention I am also having the issue of lots of
> /tmp/virtual-(username).****** files left behind. I have had to dirty shut-down
> the machine a few times due to application hangs. Anyway I just thought I'd
> mention it, I am going to get cron to clean them out on reboot for now.
> br,
> alex

Unfortunately, the /tmp/virtual-* directories remain even with clean shutdowns/reboots.

My workaround is to remove them in /etc/rc.local. There will always be one in /tmp, because rc.local runs before the gnome session starts. I don't know if "--ignore-fail-on-non-empty" is really needed -- the virtual-* directories have always been empty when I removed them manually.

$ cat /etc/rc.local
#!/bin/sh
#
# This script will be executed *after* all the other init scripts.
# You can put your own initialization stuff in here if you don't
# want to do the full Sys V style init stuff.

touch /var/lock/subsys/local
rmdir --ignore-fail-on-non-empty /tmp/virtual-*