Bug 246792 - net-p2p/bitcoin-daemon default rc.d script permissions error
Summary: net-p2p/bitcoin-daemon default rc.d script permissions error
Status: New
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: amd64 Any
: --- Affects Many People
Assignee: Kevin Bowling
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-05-28 00:36 UTC by Seth
Modified: 2020-05-28 00:40 UTC (History)
1 user (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Seth 2020-05-28 00:36:06 UTC
The bitcoin-daemon package's default rc.d script has a permissions error.

To duplicate:
# pkg install bitcoin-daemon
# sysrc bitcoind_enable="YES"
# service bitcoind start
# Error: Unable to create the PID file '/var/db/bitcoin/bitcoind.pid': Permission denied

To fix, edit /usr/local/etc/rc.d/bitcoind:
remove line pidfile="${bitcoind_data_dir}/bitcoind.pid"
uncomment #pidfile="/var/run/${name}.pid"