Bug 253323 - [patch] www/tinyproxy should remove $pidfile
Summary: [patch] www/tinyproxy should remove $pidfile
Status: New
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Many People
Assignee: Sunpoet Po-Chuan Hsieh
URL:
Keywords: buildisok
Depends on:
Blocks:
 
Reported: 2021-02-07 17:21 UTC by Helge Oldach
Modified: 2021-02-22 01:34 UTC (History)
1 user (show)

See Also:
bugzilla: maintainer-feedback? (sunpoet)


Attachments
Patch (353 bytes, patch)
2021-02-07 17:21 UTC, Helge Oldach
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Helge Oldach 2021-02-07 17:21:23 UTC
Created attachment 222243 [details]
Patch

Since the PidFile is created as root and the daemon drops privileges, it cannot remove the PidFile upon exit:

Feb  7 17:27:11 nuc tinyproxy[49788]: Could not remove PID file "/var/run/tinyproxy.pid": Permission denied.

Therefore, have the service script clean up the stale PidFile.
Comment 1 Automation User 2021-02-22 01:34:58 UTC
Build and package info is available at https://gitlab.com/swills/freebsd-ports/pipelines/259557446