Skip to content

Instantly share code, notes, and snippets.

@ephdtrg
Created January 25, 2021 10:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ephdtrg/88b508926cfb8454fbff21607376f8af to your computer and use it in GitHub Desktop.
Save ephdtrg/88b508926cfb8454fbff21607376f8af to your computer and use it in GitHub Desktop.
Bitcoind node service (systemd)
[Unit]
Description=Bitcoin Node Mainnet
[Service]
User=bitcoind
Group=bitcoind
ExecStart=/usr/bin/bitcoind -server -rpcuser=username -rpcpassword=password -datadir=/home/bitcoind/.bitcoin -rpcbind=127.0.0.1 -rpcworkqueue=64
PIDFile=/home/bitcoind/bitcoin.pid
WorkingDirectory=/home/bitcoind
[Install]
WantedBy=multi-user.target
[Unit]
Description=Bitcoin Node Testent
[Service]
User=bitcoin-testnet
Group=bitcoin-testnet
ExecStart=/usr/bin/bitcoind --testnet -server -rpcuser=username -rpcpassword=password -rpcbind=127.0.0.1 -rpcworkqueue=64
PIDFile=/home/bitcoin-testnet/bitcoin.pid
WorkingDirectory=/home/bitcoin-testnet
[Install]
WantedBy=multi-user.target
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment