mirror of
https://github.com/rootzoll/raspiblitz.git
synced 2025-02-25 07:07:46 +01:00
use different zmq port on testnetworks
This commit is contained in:
parent
936d550d70
commit
6ed8a7a492
1 changed files with 6 additions and 2 deletions
|
@ -18,8 +18,10 @@ fi
|
|||
# prefix for parallel services
|
||||
if [ ${testnetwork} = testnet ];then
|
||||
prefix="t"
|
||||
portprefix=1
|
||||
elif [ ${testnetwork} = signet ];then
|
||||
prefix="s"
|
||||
portprefix=3
|
||||
fi
|
||||
|
||||
function removeParallelService() {
|
||||
|
@ -62,8 +64,10 @@ User=bitcoin
|
|||
Group=bitcoin
|
||||
Type=forking
|
||||
PIDFile=/mnt/hdd/bitcoin/${prefix}bitcoind.pid
|
||||
ExecStart=/usr/local/bin/bitcoind -${testnetwork} -daemon \
|
||||
-pid=/mnt/hdd/bitcoin/${prefix}bitcoind.pid
|
||||
ExecStart=/usr/local/bin/bitcoind -${testnetwork} -daemon\
|
||||
-pid=/mnt/hdd/bitcoin/${prefix}bitcoind.pid\
|
||||
-zmqpubrawblock=tcp://127.0.0.1:${portprefix}8332\
|
||||
-zmqpubrawtx=tcp://127.0.0.1:${portprefix}8333
|
||||
KillMode=process
|
||||
Restart=always
|
||||
TimeoutSec=120
|
||||
|
|
Loading…
Add table
Reference in a new issue