From owner-freebsd-questions@FreeBSD.ORG Thu May 3 16:53:13 2007 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 88C7516A403 for ; Thu, 3 May 2007 16:53:13 +0000 (UTC) (envelope-from cs@schug.net) Received: from schug.net (s0.schug.net [194.97.148.170]) by mx1.freebsd.org (Postfix) with ESMTP id 4E87113C45E for ; Thu, 3 May 2007 16:53:13 +0000 (UTC) (envelope-from cs@schug.net) Received: by schug.net (Postfix, from userid 10000) id D6996C59F7; Thu, 3 May 2007 18:53:11 +0200 (CEST) Date: Thu, 3 May 2007 18:53:11 +0200 From: Christoph Schug To: sac Message-ID: <20070503165311.GE3138@voodoo.schug.net> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Organization: SpaceNet AG User-Agent: Mutt/1.5.13 OpenPKG/2-STABLE (2006-08-11) Cc: freebsd-questions@freebsd.org Subject: Re: Why doesn't FreeBSD clear /tmp on bootup? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 03 May 2007 16:53:13 -0000 On Thu, May 03, 2007, sac wrote: > I've seen OpenBSD and some other variants of Unix clearing /tmp on > bootup. But FreeBSD doesn't seem to do so. This one is configurable in /etc/rc.conf, take a look at /etc/defaults/rc.conf for default settings and explanations: | clear_tmp_enable="NO" # Clear /tmp at startup. | clear_tmp_X="YES" # Clear and recreate X11-related directories in /tmp OTOH you can configure /tmp/ as memory file system (which is clear with every reboot cause of its nature) using settings like | tmpmfs="YES" | tmpsize="128m" | tmpmfs_flags="-S" in /etc/rc.conf (in this example 128 MB of /tmp without soft-updates). -cs