On Wed, 11 Oct 2017, Lamar Owen wrote:> If the maintainers of packages that want to run well on CentOS 7 need to have > /var/run/$some-file persistence (or pseudo-persistence, which is the current > behavior enabled by re-creating said files) then those maintainers will need > to change their packages to match actual behavior or file a bug report with > upstream to change the behavior.? Upstream will probably close with a > 'WONTFIX' and the package maintainer will either change packaging or stop > supporting CentOS 7.? Of course, stranger things have happened, and upstream > might relent on the decision.? But my gut feel is that upstream will keep the > current behavior and the packages will eventually be changed to support it, > but I always reserve the right to be wrong.I see at least two possible intermediate results: The RHEL 7 folks do something, perhaps make a package, to make pseudo-persistence super easy to get. The RHEL 7 folks do something, perhaps make a package, to allow users to fix this particular problem, e.g. by adding pseudo-persisitence for a file used by a package. My guess is that neither would have to be done by the RHEL 7 folks. They might want to to ensure that neither gets done badly. -- Michael hennebry at web.cs.ndsu.NoDak.edu "Sorry but your password must contain an uppercase letter, a number, a haiku, a gang sign, a heiroglyph, and the blood of a virgin." -- someeecards
On 13/10/2017 16:02, Michael Hennebry wrote: Hi Michael,> I see at least two possible intermediate results: > The RHEL 7 folks do something, perhaps make a package, > to make pseudo-persistence super easy to get. > The RHEL 7 folks do something, perhaps make a package, > to allow users to fix this particular problem, e.g. > by adding pseudo-persisitence for a file used by a package.I disagree vehemently. Please STOP giving any advice or making any suggestions along the lines of persisting /var/run. It *is* meant to be volatile. Anyone who is packaging an application for CentOS 7 must realise this, and package their application accordingly. NO OTHER SOLUTION is acceptable. Folks, please stop giving bad advice or suggesting horrible hacks. Stop trying to force a square peg into a round hole. Cheers, Anand
On 10/13/2017 10:02 AM, Michael Hennebry wrote:> I see at least two possible intermediate results: > The RHEL 7 folks do something, perhaps make a package, > to? make pseudo-persistence super easy to get. ...This already exists as systemd-tmpfiles, as was mentioned in the thread by someone else.? Any packages needing anything to be initialized in /var/run (sockets, named pipes, etc) should use that mechanism for those things to be created each boot; that's why I used the term 'pseudo-persistence' as the persistence of this information is a mirage.
On 10/13/2017 10:19 AM, Anand Buddhdev wrote:> .. > Stop trying to force a square peg into a round hole.Whee, I just _know_ I'm going to be positively skewered (and maybe even plonked!) for this.... but, hey, it's Friday, and this post is meant to be a bit funny.? So lighten up, and enjoy a short read. obHumor: I actually have a piece of furniture (a small table) with square pegs in round holes.? The spaces between the sides of the square peg and the round hole are filled with a color-contrasting glue, and the result is rather pretty.? :-)? I intentionally picked this furniture specifically because of the square pegs in the round holes..... obHistory: Cobblers making boots back in the mid to late 1800's would often use square wooden pegs in round leather holes (typically for the thick leather soles of the boots) so that the peg would 'swage' it's own hole and fit tighter, thus holding better than a round peg ever could.? (Reference: "Farmer Boy", Laura Ingalls Wilder, Chapter titled 'Cobbler' (hey, I have five kids; my wife and I have read through the whole series five times!) which, after reading through it with my eldest child back in 2000 or so I decided to never use the 'square pegs in rounds holes' proverb ever again!).? (There are other historical instances of square pegs being better for round holes than round pegs, especially when you didn't want the peg to rotate in the hole). Anyway, a form of pseudo-persistence that meets the OP's needs is already supported directly by systemd-tmpfiles, which is a part of the core systemd package and non-optional, so your vehement disagreement is moot, sorry.? The round hole already has a square-peg adapter, at least in CentOS 7.? Packagers just need to select the proper 'adapter' for systemd-tmpfiles; the adaptation is not (and should not be, in my opinion) automatic.