On Wed, 04 Oct 2006, Craig Small wrote: > On Mon, Oct 02, 2006 at 05:06:38PM +0200, Rasmus Bøg Hansen wrote: > > If the lockfile directory does not exists, lprng fails to start. This > > is, eg. the case with the new RAMRUN option in the new initscripts, > > where /var/run is kept on a tmpfs and therefore cleared during reboot: > > I would actually consider this to be a failure of RAMRUN option to do > what it is supposed to be doing correctly and mimic /var/run properly.
It is not supposed to mimic /var/run... it is supposed to just enable ephemeral /var/run support. > I will go and discuss if this is its correct behaviour Consensus in the sysvinit team is that overengineering the ephemeral /var/run support is Not A Good Idea. Many packages already support ephemeral /var/run in the simplest and safest way (i.e. they create their /var/run directories and chown/chmod them as needed if the directories are missing), and have done that for quite a long time in some cases (e.g. fetchmail supports it since 2002, because an user asked for it). I am in fact very surprised lprng didn't get a bug about it MUCH sooner... > > The following patch solves this: > It's a work-around, I'll check to see if this is what should be > happening. Yes, it is. The other solutions implementing a "/var/run directory registry" (even one that was automatically updated on shutdown/reboot) were shot down on the grounds that it is overengineering for no good reason... and not just by members of the sysvinit team, threads in -devel often ended with other developers agreeing to the same. Therefore, packages using /var/run/<somedir> are to create their directories in their initscripts. Packages that, for one reason or another, need to support dynamically changing permissions in /var/run/<package> can use dpkg-statoverride as the database for that information if they don't have another source for that information. I doubt this is the case for lprng, though. -- "One disk to rule them all, One disk to find them. One disk to bring them all and in the darkness grind them. In the Land of Redmond where the shadows lie." -- The Silicon Valley Tarot Henrique Holschuh

