SUMMARY: Cleanup of /tmp through crontab

From: <infosyst_at_paulwurth.com>
Date: Tue, 14 Apr 1998 13:26:12 +0200

Many thanks to :

Craig Biggerstaff, Dr. Thomas P. Blinn, Ron Bowman, Barry Branch,
Nebojsa Hrmic, Serge Munhoven and Paul Youngblood

for their responses.

RESULTS:

There are 3 points to filter out:

1) The "! -mount" option was introduced to the DU4.0 crontab lines for
/tmp, /var/tmp and
    /var/preserve as a patch (april 97) which aim should be to prevent
deletion of NFS mounted files.

2) It is a fact that the patch does not function as it was intended.

3) Just deleting the "!" and letting the "-mount" option seems to solve
the problem and the
   crontab entries do what they are supposed to do.

The resulting crontab entries are the following:

15 4 * * * find /var/preserve -mount -mtime +7 -type f -exec rm -f {} \;
20 4 * * * find /tmp -mount -type f -atime +2 -exec rm -f {} \;
30 4 * * * find /var/tmp -mount -type f -atime +7 -exec rm -f {} \;
 
Best regards

Marty Cruchten
system manager - SAP technical consultant
Paul Wurth S.A.
Luxemburg
infosyst_at_paulwurth.com

------------------------------------------------------------------------
-
Original message:

Hi OSF managers,

I was wondering why my /tmp directory isn't cleaned up any more. I
looked at the
crontab entries and found the following lines:

20 4 * * * find /tmp ! -mount -type f -atime +2 -exec rm -f {} \;
30 4 * * * find /var/tmp ! -mount -type f -atime +7 -exec rm -f {} \;

This crontab entries are on those servers which were upgraded to 4.0B
DU. On other servers
that are still at 3.2D, I have the entries:

20 4 * * * find /tmp -type f -atime +2 -exec rm -f {} \;
30 4 * * * find /var/tmp -type f -atime +7 -exec rm -f {} \;

This 3.2D version perfectly cleans up all standard files not accessed
during the last 2 days. It is
this "! -mount" option on the 4.0B server that prevents the cleanup of
/tmp. So I am wondering
why this "! mount" option was added (probably during upgrade). Is there
a valuable reason for this
option to be present or can I simply delete it? Do you have the same
settings on 4.0B?
------------------------------------------------------------------------
-
Received on Tue Apr 14 1998 - 13:28:17 NZST

This archive was generated by hypermail 2.4.0 : Wed Nov 08 2023 - 11:53:37 NZDT