From owner-freebsd-current@FreeBSD.ORG Sun Dec 27 22:56:21 2009 Return-Path: Delivered-To: current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 00340106568F for ; Sun, 27 Dec 2009 22:56:20 +0000 (UTC) (envelope-from ken@mthelicon.com) Received: from hercules.mthelicon.com (hercules.mthelicon.com [IPv6:2001:49f0:2023::2]) by mx1.freebsd.org (Postfix) with ESMTP id BC6ED8FC0C for ; Sun, 27 Dec 2009 22:56:20 +0000 (UTC) Received: from feathers.peganest.com (feathers.peganest.com [78.33.110.3]) (authenticated bits=0) by hercules.mthelicon.com (8.14.3/8.14.3) with ESMTP id nBRMuDuI019356 (version=TLSv1/SSLv3 cipher=DHE-DSS-AES256-SHA bits=256 verify=NO) for ; Sun, 27 Dec 2009 22:56:15 GMT (envelope-from ken@mthelicon.com) From: Pegasus Mc Cleaft Organization: Feathers To: FreeBSD current mailing list Date: Sun, 27 Dec 2009 22:56:13 +0000 User-Agent: KMail/1.12.4 (FreeBSD/9.0-CURRENT; KDE/4.3.4; amd64; ; ) MIME-Version: 1.0 Content-Type: Multipart/Mixed; boundary="Boundary-00=_NY+NL6bzLR5Cowy" Message-Id: <200912272256.13436.ken@mthelicon.com> X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00 autolearn=ham version=3.2.5 X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on hercules.mthelicon.com X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: Subject: Clearing /var/tmp on boot X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 27 Dec 2009 22:56:21 -0000 --Boundary-00=_NY+NL6bzLR5Cowy Content-Type: Text/Plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Hello Current.. While checking over my system (9-CURRENT AMD64) I was a bit surprised to find tons of old files that were hanging around in my /var/tmp that were never deleted/cleaned out. Most of the offenders were dbus, KDE and PCSCD files. To be honest, I never really checked the /var/tmp directory as I normally use the /tmp for generic stuff (unpacking archives, etc). I was wondering if there should be a startup rc script that cleans this directory as well. I copied and modified the existing /etc/rc.d/cleartmp (now /usr/local/etc/rc.d/clearvartmp) to do this job and would be interested in knowing if this is a good idea or if there are any ill effects that I didn't anticipate by doing this. Should the /var/tmp directory be cleaned on bootup? To me, it looked like it should as many of the files in the KDE directory were partial download files many months old. I have included the script I used in this email, but would like to point out that I am not the author of the original script, I mearly modified the existing one to do as I wanted. Peg --Boundary-00=_NY+NL6bzLR5Cowy--