From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([208.92.234.80] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1QMi7X-0001DK-86 for garchives@archives.gentoo.org; Wed, 18 May 2011 14:53:07 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 698301C264; Wed, 18 May 2011 14:52:58 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) by pigeon.gentoo.org (Postfix) with ESMTP id DD89F1C25B for ; Wed, 18 May 2011 14:52:16 +0000 (UTC) Received: from [83.146.207.236] (dyn-207-236-dsl.vsp.fi [83.146.207.236]) (using TLSv1 with cipher DHE-RSA-CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) (Authenticated sender: ssuominen) by smtp.gentoo.org (Postfix) with ESMTPSA id E49FB1B4002 for ; Wed, 18 May 2011 14:52:15 +0000 (UTC) Message-ID: <4DD3DCD9.8050203@gentoo.org> Date: Wed, 18 May 2011 17:51:05 +0300 From: Samuli Suominen User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.17) Gecko/20110429 Lightning/1.0b3pre Thunderbird/3.1.10 Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-dev@lists.gentoo.org Reply-to: gentoo-dev@lists.gentoo.org MIME-Version: 1.0 To: gentoo-dev@lists.gentoo.org Subject: Re: [gentoo-dev] rfc: use of the /run directory References: <20110517165748.GA3266@linux1> <1305655899.18096.4.camel@tablet> <20110517192056.GA13002@Vereniki.lan> <20110517194649.GB3741@linux1> <20110518033648.109235ca@epia.jer-c2.orkz.net> <20110518054919.GB2928@zptr-nb18.caf.local> <20110518144544.GA6260@bimsstein> In-Reply-To: <20110518144544.GA6260@bimsstein> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Archives-Salt: X-Archives-Hash: f0d5f4a1f5b69ca803e7393af893967f On 05/18/2011 05:45 PM, Henry Gebhardt wrote: > On Wed, May 18, 2011 at 08:49:19AM +0300, Eray Aslan wrote: >> On Wed, May 18, 2011 at 03:36:48AM +0200, Jeroen Roovers wrote: >>> wrt /var/run on tmpfs, I recall packages installing daemons that expect >>> their specific directories to be present in /var/run, and that do not >>> play nice when that directory turns out empty, but we should be able to >>> work around that by creating the directory in the init.d script before >>> we execute the daemon. >> >> Yes. Some examples: >> >> https://bugs.gentoo.org/show_bug.cgi?id=332633 >> https://bugs.gentoo.org/show_bug.cgi?id=334245 >> https://bugs.gentoo.org/show_bug.cgi?id=334437 >> https://bugs.gentoo.org/show_bug.cgi?id=342049 >> https://bugs.gentoo.org/show_bug.cgi?id=333783 >> > > I thought I'd mention, the way systemd handles this is with an extra > service and configuration files in /etc/tmpfiles.d [1]. I am sure OpenRC > could use the same tool[2] for that. > > [1] http://0pointer.de/public/systemd-man/tmpfiles.d.html > [2] http://0pointer.de/public/systemd-man/systemd-tmpfiles.html Not all packages using /var/run own a init script, nor need one. Take sys-fs/udisks[1] for example. Then, we need something to create these dirs in OpenRC (or fix the package, but that might take some time...) [1] http://bugs.gentoo.org/333893