Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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