Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 562032

Summary: net-misc/bopm-3.1.3: fails to start if /var/run/bopm is missing
Product: Gentoo Linux Reporter: Raymond Jennings <shentino>
Component: Current packagesAssignee: Gentoo Linux bug wranglers <bug-wranglers>
Status: RESOLVED FIXED    
Severity: normal    
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: Patch for the ebuild to not create the directory at install time
Patch to the initscript to create the directory at runtime

Description Raymond Jennings 2015-10-02 11:18:34 UTC
Bopm fails to start if /var/run/bopm is missing.

The init script doesn't create the directory if it's missing, causing the pid file creation to choke.

Reproducible: Always

Actual Results:  
fails to start

Expected Results:  
init script automatically creates /var/run/bopm

It appears that the ebuild is creating this file during install.

However, this is not appropriate because /var/run is a tmpfs and the directory will vanish if the server reboots.

The directory should instead be created by the initscript during service launch.
Comment 1 Raymond Jennings 2015-10-02 11:32:29 UTC
Created attachment 413496 [details, diff]
Patch for the ebuild to not create the directory at install time
Comment 2 Raymond Jennings 2015-10-02 11:32:55 UTC
Created attachment 413498 [details, diff]
Patch to the initscript to create the directory at runtime
Comment 3 Raymond Jennings 2015-10-03 03:03:11 UTC
[19:02:01] <grknight> Shentino: binki: if i were to rewrite the init script to modern times, I would start with https://bpaste.net/show/89f04622a580

I agree with this suggestion, if it's a valid one.
Comment 4 Nathan Phillip Brink (binki) (RETIRED) gentoo-dev 2015-10-03 03:07:02 UTC
Committed a fix as bopm-3.1.3-r1:

> net-misc/bopm: Support tmpfs /run for bug #562032. Thanks shentino, grknight.

Thanks for the bug and prodding me on IRC.
Comment 5 Nathan Phillip Brink (binki) (RETIRED) gentoo-dev 2015-10-03 03:31:01 UTC
*** Bug 469514 has been marked as a duplicate of this bug. ***
Comment 6 Nathan Phillip Brink (binki) (RETIRED) gentoo-dev 2015-10-03 03:33:28 UTC
*** Bug 458162 has been marked as a duplicate of this bug. ***