Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 949682 - net-proxy/tinyproxy-1.11.2: commented out PidFile marks service 'crashed' for OpenRC
Summary: net-proxy/tinyproxy-1.11.2: commented out PidFile marks service 'crashed' for...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Ben Kohler
URL:
Whiteboard:
Keywords: PullRequest
Depends on:
Blocks:
 
Reported: 2025-02-12 20:22 UTC by Azamat H. Hackimov
Modified: 2025-02-27 18:54 UTC (History)
0 users

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Azamat H. Hackimov 2025-02-12 20:22:22 UTC
OpenRC relies on PidFile value to detect that service is running. By default, this option is commented out, and OpenRC marks tinyproxy service as crashed:

 /etc/init.d/tinyproxy start
tinyproxy                 | * Starting tinyproxy ...

/etc/init.d/tinyproxy status
 * status: crashed
Comment 1 Larry the Git Cow gentoo-dev 2025-02-27 18:54:07 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=27231d632f1c4ba2d3f8e18ee85530f64e0d3ace

commit 27231d632f1c4ba2d3f8e18ee85530f64e0d3ace
Author:     Azamat H. Hackimov <azamat.hackimov@gmail.com>
AuthorDate: 2025-02-12 20:23:07 +0000
Commit:     Ben Kohler <bkohler@gentoo.org>
CommitDate: 2025-02-27 18:53:18 +0000

    net-proxy/tinyproxy: enable PidFile option by default
    
    OpenRC relies on PidFile value to detect that service is running. By
    default, this option is commented out, and OpenRC marks tinyproxy
    service as crashed.
    
    Applied upstream patch that define @runstatedir@ (/run) for for PID
    file instead of @localstatedir@ (/var).
    
    Closes: https://bugs.gentoo.org/949682
    
    Signed-off-by: Azamat H. Hackimov <azamat.hackimov@gmail.com>
    Signed-off-by: Ben Kohler <bkohler@gentoo.org>

 .../files/tinyproxy-1.11.2_use-runstatedir.patch   | 89 ++++++++++++++++++++++
 net-proxy/tinyproxy/tinyproxy-1.11.2-r1.ebuild     | 83 ++++++++++++++++++++
 2 files changed, 172 insertions(+)