Bug 114969 - tmpwatch does not clean up socket files in /tmp
tmpwatch does not clean up socket files in /tmp
Status: CLOSED DUPLICATE of bug 66148
Product: Red Hat Enterprise Linux 2.1
Classification: Red Hat
Component: tmpwatch (Show other bugs)
2.1
All Linux
medium Severity medium
: ---
: ---
Assigned To: Miloslav Trmač
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2004-02-04 17:58 EST by C. Ray Ng
Modified: 2007-11-30 17:06 EST (History)
1 user (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2006-02-21 14:01:05 EST
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)

  None (edit)
Description C. Ray Ng 2004-02-04 17:58:24 EST
Description of problem:
tmpwatch does not remove socket files, in particular, files in 
/tmp/orbit-*/linc* left by gnome were allowed to grow.

Version-Release number of selected component (if applicable):
tmpwatch-2.8.4-5 (RHEL3, RH9) down to tmpwatch-2.8.3-1 (RH7.3)

How reproducible:
Always

Steps to Reproduce:
1. login via gdm
2. use the system for some period of time
3.
  
Actual results:
socket files accumulated in /tmp/orbit-*/* 

Expected results:
clean up after a while.

Additional info:
Adding --all in /etc/cron.daily/tmpwatch would be a solution, i.e.
/usr/sbin/tmpwatch --all 240 /tmp
/usr/sbin/tmpwatch --all 720 /var/tmp
Comment 1 Miloslav Trmač 2004-08-13 16:54:06 EDT
This is too dangerous.
It could for example remove the sockets used for X11
(atime on the socket is changed only on new connections,
not only on X protocol traffic).

*** This bug has been marked as a duplicate of 66148 ***
Comment 2 C. Ray Ng 2004-08-13 18:45:07 EDT
Right, a safer version that I have been using is the following:

# cleanup accumulated socket files in /tmp/orbit-* first
#
/usr/sbin/tmpwatch --fuser --all 240 /tmp/orbit-*
/usr/sbin/tmpwatch 240 /tmp
/usr/sbin/tmpwatch 720 /var/tmp
...
Comment 3 Miloslav Trmač 2004-08-13 19:04:19 EDT
The rationale from bug 66148 is summarized in comment 1 above.
Comment 4 David Baron 2004-08-13 23:35:42 EDT
FWIW, I've seen filesystems run out of inodes due to this problem.
Comment 5 Red Hat Bugzilla 2006-02-21 14:01:05 EST
Changed to 'CLOSED' state since 'RESOLVED' has been deprecated.

Note You need to log in before you can comment on or make changes to this bug.