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