Gentoo Archives: gentoo-dev

From: Samuli Suominen <ssuominen@g.o>
To: gentoo-dev@l.g.o
Subject: Re: [gentoo-dev] rfc: use of the /run directory
Date: Wed, 18 May 2011 14:53:07
Message-Id: 4DD3DCD9.8050203@gentoo.org
In Reply to: Re: [gentoo-dev] rfc: use of the /run directory by Henry Gebhardt
1 On 05/18/2011 05:45 PM, Henry Gebhardt wrote:
2 > On Wed, May 18, 2011 at 08:49:19AM +0300, Eray Aslan wrote:
3 >> On Wed, May 18, 2011 at 03:36:48AM +0200, Jeroen Roovers wrote:
4 >>> wrt /var/run on tmpfs, I recall packages installing daemons that expect
5 >>> their specific directories to be present in /var/run, and that do not
6 >>> play nice when that directory turns out empty, but we should be able to
7 >>> work around that by creating the directory in the init.d script before
8 >>> we execute the daemon.
9 >>
10 >> Yes. Some examples:
11 >>
12 >> https://bugs.gentoo.org/show_bug.cgi?id=332633
13 >> https://bugs.gentoo.org/show_bug.cgi?id=334245
14 >> https://bugs.gentoo.org/show_bug.cgi?id=334437
15 >> https://bugs.gentoo.org/show_bug.cgi?id=342049
16 >> https://bugs.gentoo.org/show_bug.cgi?id=333783
17 >>
18 >
19 > I thought I'd mention, the way systemd handles this is with an extra
20 > service and configuration files in /etc/tmpfiles.d [1]. I am sure OpenRC
21 > could use the same tool[2] for that.
22 >
23 > [1] http://0pointer.de/public/systemd-man/tmpfiles.d.html
24 > [2] http://0pointer.de/public/systemd-man/systemd-tmpfiles.html
25
26 Not all packages using /var/run own a init script, nor need one. Take
27 sys-fs/udisks[1] for example. Then, we need something to create these
28 dirs in OpenRC (or fix the package, but that might take some time...)
29
30 [1] http://bugs.gentoo.org/333893

Replies

Subject Author
[gentoo-dev] Re: rfc: use of the /run directory Jonathan Callen <abcd@g.o>