September 13, 2026

Setting up the bitcoind to run at startup Ubuntu 17.04

I’ve created a Bitcoin.service file as found here:

https://github.com/bitcoin/bitcoin/blob/master/contrib/init/bitcoind.service

However i’ve modified it as i build bitcoin-core from source to the following:

https://gist.github.com/anonymous/7e1bca97739147d698327d7f3a119992

It is installed to:

/lib/systemd/system

As apparently in this version of Ubuntu it must be there

It runs when i run this command:

bitcoind -daemon -pid=/home/chris/.bitcoin/bitcoind.pid -
conf=/home/chris/.bitcoin/bitcoin.conf -datadir=/home/chris/.bitcoin/ 
-disablewallet

However trying to run:

systemctl start bitcoind

Gives this error

bitcoind.service - Bitcoin's distributed currency daemon
   Loaded: loaded (/lib/systemd/system/bitcoind.service; enabled; 
vendor preset: enabled)
   Active: failed (Result: exit-code) since Sun 2017-10-15 17:27:38 
BST; 2s ago
  Process: 4180 ExecStart=/home/chris/.bitcoin/bitcoind -daemon -
pid=/home/chris/.bitcoin/bitcoind.pid -
conf=/home/chris/.bitcoin/bitcoin.conf -datadir=/home/chris/.bitcoin/ 
-disablewallet (code=exited, status=203

Oct 15 17:27:38 chris-GE60-2PL systemd[1]: bitcoind.service: Unit 
entered failed state.
Oct 15 17:27:38 chris-GE60-2PL systemd[1]: bitcoind.service: Failed 
with result 'exit-code'.
Oct 15 17:27:38 chris-GE60-2PL systemd[1]: bitcoind.service: Service 
hold-off time over, scheduling restart.
Oct 15 17:27:38 chris-GE60-2PL systemd[1]: Stopped Bitcoin's 
distributed currency daemon.
Oct 15 17:27:38 chris-GE60-2PL systemd[1]: bitcoind.service: Start 
request repeated too quickly.
Oct 15 17:27:38 chris-GE60-2PL systemd[1]: Failed to start Bitcoin's 
distributed currency daemon.
Oct 15 17:27:38 chris-GE60-2PL systemd[1]: bitcoind.service: Unit 
entered failed state.
Oct 15 17:27:38 chris-GE60-2PL systemd[1]: bitcoind.service: Failed 
with result 'exit-code'.

Does anyone know what i’m doing wrong here ?

Previous Article

NBitcoin: Get address out of raw block stream

Next Article

Bitcoin paper wallet and Bitcoincash withdrawal?