Created
June 30, 2025 06:54
-
-
Save yagop/2d25d395bd422eed9564695999facdac to your computer and use it in GitHub Desktop.
Btcd daemon service
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[Unit] | |
Description=Bitcoin daemon | |
Documentation=https://github.com/btcsuite/btcd/ | |
# https://www.freedesktop.org/wiki/Software/systemd/NetworkTarget/ | |
After=network-online.target | |
Wants=network-online.target | |
[Service] | |
ExecStart=/usr/local/bin/btcd \ | |
--noonion \ | |
--txindex \ | |
--rpclisten="0.0.0.0:8334" \ | |
--datadir=/data/bitcoin-go \ | |
--logdir=/data/bitcoin-go/logs \ | |
--sigcachemaxsize=1000000 \ | |
--rpcuser=yago \ | |
--rpcpass=goya \ | |
--notls \ | |
--rpcquirks \ | |
--utxocachemaxsize=2000 | |
TimeoutStopSec=1000 | |
SendSIGKILL=no | |
Restart=always | |
RestartSec=10s | |
# Run as bitcoin:bitcoin | |
User=ubuntu | |
Group=ubuntu | |
[Install] | |
WantedBy=multi-user.target |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment