I’ve a /ect/systemd/system/bitcoin.service with the next content material and I’m questioning, why bitcoin-cli getinfo tells me a few configuration file elsewhere:

error: Couldn't find RPC credentials. No authentication cookie might be discovered, and RPC password shouldn't be set.  See -rpcpassword and -stdinrpcpass.  Configuration file: (/house/pi/.bitcoin/bitcoin.conf)

Content material of bitcoin.service, particularly -conf=/house/bitcoin/.bitcoin/bitcoin.conf:

[Unit]
Description=Bitcoin daemon
After=community.goal
[Service]
ExecStart=/usr/native/bin/bitcoind -conf=/house/bitcoin/.bitcoin/bitcoin.conf -pid=/house/bitcoin/.bitcoin/bitcoind.pid
# Creates /run/bitcoind owned by bitcoin
RuntimeDirectory=bitcoind
Consumer=bitcoin
Sort=forking
PIDFile=/house/bitcoin/.bitcoin/bitcoind.pid
Restart=on-failure
# Hardening measures
####################
# Present a personal /tmp and /var/tmp.
PrivateTmp=true
# Mount /usr, /boot/ and /and so forth read-only for the method.
ProtectSystem=full
# Disallow the method and all of its kids to realize
# new privileges via execve().
NoNewPrivileges=true
# Use a brand new /dev namespace solely populated with API pseudo gadgets
# equivalent to /dev/null, /dev/zero and /dev/random.
PrivateDevices=true
# Deny the creation of writable and executable reminiscence mappings.
MemoryDenyWriteExecute=true
[Install]
WantedBy=multi-user.goal

Source link

LEAVE A REPLY

Please enter your comment!
Please enter your name here