From owner-freebsd-questions@FreeBSD.ORG Wed Sep 25 09:24:00 2013 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id 9D8DAA35 for ; Wed, 25 Sep 2013 09:24:00 +0000 (UTC) (envelope-from frank2@fjl.co.uk) Received: from bs1.fjl.org.uk (bs1.fjl.org.uk [84.45.41.196]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 22CC82578 for ; Wed, 25 Sep 2013 09:23:59 +0000 (UTC) Received: from [192.168.1.35] (mux.fjl.org.uk [62.3.120.246]) (authenticated bits=0) by bs1.fjl.org.uk (8.14.4/8.14.4) with ESMTP id r8P9NpSw034944 (version=TLSv1/SSLv3 cipher=DHE-DSS-CAMELLIA256-SHA bits=256 verify=NO) for ; Wed, 25 Sep 2013 10:23:51 +0100 (BST) (envelope-from frank2@fjl.co.uk) Message-ID: <5242ABA9.9080502@fjl.co.uk> Date: Wed, 25 Sep 2013 10:23:53 +0100 From: Frank Leonhardt User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:17.0) Gecko/20130801 Thunderbird/17.0.8 MIME-Version: 1.0 To: freebsd-questions@freebsd.org Subject: Re: Files in /tmp directory - Is there any timelimit ? References: <5242A5E7.5070908@gmail.com> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Content-Filtered-By: Mailman/MimeDel 2.1.14 X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 25 Sep 2013 09:24:00 -0000 On 25/09/2013 10:05, Sreeram BS wrote: > On Wed, Sep 25, 2013 at 2:29 PM, Volodymyr Kostyrko wrote: > >> 25.09.2013 11:34, Sreeram BS wrote: >> >>> Hi, >>> I am using FreeBSD 9. I would like to know as to what is the lifetime >>> of >>> the files in /tmp directory. The general description says that these files >>> *may* not be preserved across a reboot. By this I interpret that if the >>> system is not rebooted, then these files will be there forever. But, just >>> wanted a confirmation to see if there is any lifespan (expiry-time) >>> attached with these files (ie the system would flush these files after >>> some >>> days/months etc automatically). >>> >> Not by default. There's a clean-tmps periodic task which can be enabled >> @/etc/periodic.conf. It defaults to three days. >> >> -- >> Sphinx of black quartz, judge my vow. >> > Does this auto-cleanup apply to files in /var/tmp directory also. > The generic description says that the files in this directory can stay > across reboots. So, does this survive auto-cleanup too? > > regards, > Sreeram The default is to clean up /tmp only, but this can be changed in periodic.conf If you're struggling with this, note that a default periodic.conf is in /etc/defaults and it's individual values can be over-ridden by /etc/periodic.conf IF IT EXISTS. Regards, Frank.