From owner-freebsd-rc@FreeBSD.ORG Thu Nov 25 21:27:20 2010 Return-Path: Delivered-To: freebsd-rc@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 2197D106566B; Thu, 25 Nov 2010 21:27:20 +0000 (UTC) (envelope-from delphij@delphij.net) Received: from tarsier.geekcn.org (tarsier.geekcn.org [IPv6:2001:470:a803::1]) by mx1.freebsd.org (Postfix) with ESMTP id BBC268FC18; Thu, 25 Nov 2010 21:27:19 +0000 (UTC) Received: from mail.geekcn.org (tarsier.geekcn.org [211.166.10.233]) by tarsier.geekcn.org (Postfix) with ESMTP id 7F866A67E1A; Fri, 26 Nov 2010 05:27:17 +0800 (CST) X-Virus-Scanned: amavisd-new at geekcn.org Received: from tarsier.geekcn.org ([211.166.10.233]) by mail.geekcn.org (mail.geekcn.org [211.166.10.233]) (amavisd-new, port 10024) with LMTP id 8bCohIEmxtif; Fri, 26 Nov 2010 05:27:11 +0800 (CST) Received: from delta.delphij.net (c-76-102-26-215.hsd1.ca.comcast.net [76.102.26.215]) (using TLSv1 with cipher DHE-RSA-CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) by tarsier.geekcn.org (Postfix) with ESMTPSA id 9E4B3A67D6A; Fri, 26 Nov 2010 05:27:10 +0800 (CST) DomainKey-Signature: a=rsa-sha1; s=default; d=delphij.net; c=nofws; q=dns; h=message-id:date:from:reply-to:organization:user-agent: mime-version:to:cc:subject:references:in-reply-to: x-enigmail-version:openpgp:content-type:content-transfer-encoding; b=Xh/XCAPik2B7Njg4ompIjonHxHtCi5+BufDuX9Gz9sTx5gBB6fyvCqd+TLe9KWs5i YKkbUB8op3Nb1OO5C4t9A== Message-ID: <4CEED4AA.3030001@delphij.net> Date: Thu, 25 Nov 2010 13:27:06 -0800 From: Xin LI Organization: The FreeBSD Project User-Agent: Mozilla/5.0 (X11; U; FreeBSD amd64; en-US; rv:1.9.1.15) Gecko/20101028 Thunderbird/3.0.10 ThunderBrowse/3.3.2 MIME-Version: 1.0 To: Garrett Cooper References: <4CEEC8E7.6040102@delphij.net> In-Reply-To: X-Enigmail-Version: 1.0.1 OpenPGP: id=3FCA37C1; url=http://www.delphij.net/delphij.asc Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: freebsd-rc@freebsd.org, d@delphij.net Subject: Re: RFC: cleartmp: Allow user configurable mtree for /tmp X-BeenThere: freebsd-rc@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: d@delphij.net List-Id: "Discussion related to /etc/rc.d design and implementation." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 25 Nov 2010 21:27:20 -0000 -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA256 On 11/25/10 12:42, Garrett Cooper wrote: > On Thu, Nov 25, 2010 at 12:36 PM, Xin LI wrote: >> -----BEGIN PGP SIGNED MESSAGE----- >> Hash: SHA256 >> >> Hi, >> >> Here is a patch that adds a new variable, tmp_mtree, which allows a user >> defined mtree for /tmp. This is useful when clear_tmp_enable="YES" and >> some directories are needed to be exist in /tmp before services is started. > > Why not just put the file(s) in /var ? Because /var is /var and /tmp is /tmp. Well, to be more specific - administrator expect /var's contents to be kept when system reboots, and /tmp is not. For example you may want to keep session files under /tmp and not /var, and log files under /var and not /tmp. Note that there is a small typo in previous patch where tmp_mtree should be cleartmp_mtree, which I forgot. Cheers, - -- Xin LI http://www.delphij.net/ FreeBSD - The Power to Serve! Live free or die -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.16 (FreeBSD) iQEcBAEBCAAGBQJM7tSqAAoJEATO+BI/yjfBk8EH/jrvjD0eO0gy3hXPDAdzht63 pMI83lPeUOJwu9Zl5y0ch/wvHnu8S4PEVb3VfdRpHPgTaTtSRbPseOnJHq81UvfQ g7mm+uXd7XhQlLdlejJApldi06XLOaP60mKy4F/OUFs8NHTQI3U7dQuVVNuq9mCe w7t/6ivofQZyTITTz1CYG39Waq3ezT9Ek6fT6PZ+BEoNqhe1Y5MpyC2JaJ95gWQY ZGWD0LIlxdLdEEMbUFyKfvC/W21kMF0KGginCyAuALoLlPkpv4AaG2WlM5IFSeoY cVCckNEorLdQFQncwwiHUipO66aIIEGPbV7MPtvHAMBMERwjduFd3cz341XGSCc= =0IDn -----END PGP SIGNATURE-----