Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 562032 - net-misc/bopm-3.1.3: fails to start if /var/run/bopm is missing
Summary: net-misc/bopm-3.1.3: fails to start if /var/run/bopm is missing
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
: 458162 469514 (view as bug list)
Depends on:
Blocks:
 
Reported: 2015-10-02 11:18 UTC by Raymond Jennings
Modified: 2015-10-03 03:33 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
Patch for the ebuild to not create the directory at install time (ebuild.patch,316 bytes, patch)
2015-10-02 11:32 UTC, Raymond Jennings
Details | Diff
Patch to the initscript to create the directory at runtime (initscript.patch,566 bytes, patch)
2015-10-02 11:32 UTC, Raymond Jennings
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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. ***