From owner-freebsd-current@FreeBSD.ORG Sun Dec 27 23:07:11 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 52BDE1065692 for ; Sun, 27 Dec 2009 23:07:11 +0000 (UTC) (envelope-from dougb@FreeBSD.org) Received: from mail2.fluidhosting.com (mx21.fluidhosting.com [204.14.89.4]) by mx1.freebsd.org (Postfix) with ESMTP id E3BB58FC19 for ; Sun, 27 Dec 2009 23:07:10 +0000 (UTC) Received: (qmail 1079 invoked by uid 399); 27 Dec 2009 23:07:10 -0000 Received: from localhost (HELO foreign.dougb.net) (dougb@dougbarton.us@127.0.0.1) by localhost with ESMTPAM; 27 Dec 2009 23:07:10 -0000 X-Originating-IP: 127.0.0.1 X-Sender: dougb@dougbarton.us Message-ID: <4B37E89D.1050703@FreeBSD.org> Date: Sun, 27 Dec 2009 15:07:09 -0800 From: Doug Barton Organization: http://SupersetSolutions.com/ User-Agent: Thunderbird 2.0.0.23 (X11/20091206) MIME-Version: 1.0 To: Pegasus Mc Cleaft References: <200912272256.13436.ken@mthelicon.com> In-Reply-To: <200912272256.13436.ken@mthelicon.com> X-Enigmail-Version: 0.96.0 OpenPGP: id=D5B2F0FB Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: FreeBSD current mailing list Subject: Re: 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 23:07:11 -0000 Pegasus Mc Cleaft wrote: > 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. No, there should not. If you look at hier(7) it says this about /var/tmp: temporary files that are kept between system reboots OTOH I do agree that it can tend to get crufty. The better way to handle things that are there which should definitely be cleaned routinely is to do it in the scripts for those services. I don't know about kde or pcscd, but you could add appropriate functionality to the dbus script very easily, it already has a _prestart method. Thank you for your interest in making FreeBSD better in any case. If you have questions about rc.d-specific things you could probably follow up on freebsd-rc@FreeBSD.org. If you have questions about individual ports you could follow up on the -ports list. hth, Doug -- Improve the effectiveness of your Internet presence with a domain name makeover! http://SupersetSolutions.com/