When you install Bitcoin Core over the makefile it is being installed to /usr/local/bin/ and not /usr/bin/.
When you use the systemd file out of the box it will causes an error because /usr/bin/bitcoind was not found. This patch fixes it.
init: systemd directory fix #16590
pull emilengler wants to merge 1 commits into bitcoin:master from emilengler:2019-08-systemd-fix changing 1 files +1 −1-
emilengler commented at 7:35 PM on August 12, 2019: contributor
-
init: systemd directory fix e480215a1f
- fanquake added the label Scripts and tools on Aug 12, 2019
-
jonasschnelli commented at 8:07 AM on August 13, 2019: contributor
utACK e480215a1f5ba0de5e939f95f376ae03fb22c178
- fanquake requested review from dongcarl on Aug 14, 2019
-
laanwj commented at 12:08 PM on August 14, 2019: member
~0
This completely depends on what the install prefix on
./configureis set to.If you want to get really pedantic about this, you could make a
contrib/init/bitcoind.service.inthat the autobuild system replaces the@prefix@in to make the eventual service file. -
emilengler commented at 6:03 PM on August 14, 2019: contributor
@laanwj Good idea but what is with the other init systems? Also I think all the scripts we provide should work out of the box
-
dongcarl commented at 6:13 PM on August 14, 2019: member
@emilengler I believe the same treatment should be applied to all init systems. The
/usr/localdefault forPREFIXcomes from autoconf: https://www.gnu.org/software/autoconf/manual/autoconf-2.69/html_node/Default-Prefix.html -
emilengler commented at 3:36 PM on August 15, 2019: contributor
@dongcarl Ok, will do another pull request with more autoconf. This will be closed in favor of the future one
- emilengler closed this on Aug 15, 2019
- emilengler deleted the branch on Aug 15, 2019
- DrahtBot locked this on Dec 16, 2021