Bug 41777 - [patch] /etc/periodic/daily/100.clean-disks removes lisp.core
Summary: [patch] /etc/periodic/daily/100.clean-disks removes lisp.core
Status: Closed FIXED
Alias: None
Product: Base System
Classification: Unclassified
Component: conf (show other bugs)
Version: 4.6.2-RELEASE
Hardware: Any Any
: Normal Affects Only Me
Assignee: freebsd-bugs (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-08-19 13:00 UTC by neil
Modified: 2021-11-14 01:31 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description neil 2002-08-19 13:00:03 UTC
The cmucl port contains a file /usr/local/lib/cmucl/lib/lisp.core which /etc/periodic/daily/100.clean-disks will remove.

Fix: 

The file definitions for 100.clean-disks needs modification. Do you exclude .core files or restrict them somehow?
How-To-Repeat: Install the port and enable 100.clean-disks. The file will be deleted after 3 days.
Comment 1 neil 2002-08-19 17:02:27 UTC
The cmucl port maintainer has agreed to address this problem.

He will probably rename the offending file but there is a chance that this 
could affect another package at sometime in the future.

Regards,
Neil Darlow M.Sc.
-- 
ICQ: 135505456  E-Mail, Jabber, MSNM: see following GPG identity
1024D/531F9048 1999-09-11 Neil Darlow <neil @ darlow.co.uk>
Key fingerprint = 359D B8FF 6273 6C32 BEAA  43F9 E579 E24A 531F 9048
Comment 2 des 2003-01-16 12:24:08 UTC
The port is not at fault.  Quite to the contrary - 100.clean-disks is
a terrible idea, as it has no way of knowing that the files it deletes
are truly dross, and not something a developer has spent hours trying
to provoke so she can analyze it first thing Monday morning.  If disk
space is really at a premium, use quotas.

DES
-- 
Dag-Erling Smorgrav - des@ofug.org
Comment 3 Matteo Riondato 2005-03-29 16:42:46 UTC
I would agree with DES: 100.clean-disks is a terrible idea. Anyway, I
would suggest the following patch.
It sets daily_clean_disks_files to "", so that it will be sysadmin
business to choose which files are to be removed.

--- periodic.conf.orig  Tue Mar 29 17:38:40 2005
+++ periodic.conf       Tue Mar 29 17:39:09 2005
@@ -37,7 +37,7 @@

 # 100.clean-disks
 daily_clean_disks_enable="NO"                          # Delete files daily
-daily_clean_disks_files="[#,]* .#* a.out *.core *.CKP .emacs_[0-9]*"
+daily_clean_disks_files=""
 daily_clean_disks_days=3                               # If older than this
 daily_clean_disks_verbose="YES"                                # Mention files deleted
    
Best Regards
-- 
Rionda aka Matteo Riondato
Disinformato per default
G.U.F.I. Staff Member (http://www.gufi.org)
FreeSBIE Developer (http://www.freesbie.org)
Comment 4 Bruce Cran freebsd_committer freebsd_triage 2010-03-13 12:23:33 UTC
State Changed
From-To: open->closed

100.clean-disks is disabled by default, and the user needs to configure 
/etc/periodic.conf before it can be used.