net-p2p/bitcoin-daemon: Move PID to /var/run

This deconflicts the GUI client, and fixes a permission error for the daemon
even when running stand alone.

PR:		246792
Reported by:	Seth586 at protonmail.com, oobaz at frammish.org
Sponsored by:	BBOX.io
This commit is contained in:
Kevin Bowling 2020-11-17 02:36:54 +00:00
parent 344db4ff56
commit f0acac574d
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=555537
2 changed files with 2 additions and 3 deletions

View File

@ -25,7 +25,7 @@ PLIST_FILES= bin/bitcoind \
USE_RC_SUBR= bitcoind
PORTREVISION= 2
PORTREVISION= 3
post-install:
${INSTALL_DATA} ${FILESDIR}/bitcoin.conf ${STAGEDIR}${PREFIX}/etc/bitcoin.conf.sample

View File

@ -33,7 +33,7 @@ stop_cmd="bitcoind_stop"
stop_postcmd="bitcoind_wait"
command="%%PREFIX%%/bin/bitcoind"
daemon_command="/usr/sbin/daemon"
#pidfile="/var/run/${name}.pid"
pidfile="/var/run/${name}.pid"
extra_commands="configtest"
@ -50,7 +50,6 @@ load_rc_config ${name}
# set up dependant variables
procname="${command}"
pidfile="${bitcoind_data_dir}/bitcoind.pid"
required_files="${bitcoind_config_file}"