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
|
# prefix for parallel services
|
||||||
if [ ${testnetwork} = testnet ];then
|
if [ ${testnetwork} = testnet ];then
|
||||||
prefix="t"
|
prefix="t"
|
||||||
|
portprefix=1
|
||||||
elif [ ${testnetwork} = signet ];then
|
elif [ ${testnetwork} = signet ];then
|
||||||
prefix="s"
|
prefix="s"
|
||||||
|
portprefix=3
|
||||||
fi
|
fi
|
||||||
|
|
||||||
function removeParallelService() {
|
function removeParallelService() {
|
||||||
|
@ -62,8 +64,10 @@ User=bitcoin
|
||||||
Group=bitcoin
|
Group=bitcoin
|
||||||
Type=forking
|
Type=forking
|
||||||
PIDFile=/mnt/hdd/bitcoin/${prefix}bitcoind.pid
|
PIDFile=/mnt/hdd/bitcoin/${prefix}bitcoind.pid
|
||||||
ExecStart=/usr/local/bin/bitcoind -${testnetwork} -daemon \
|
ExecStart=/usr/local/bin/bitcoind -${testnetwork} -daemon\
|
||||||
-pid=/mnt/hdd/bitcoin/${prefix}bitcoind.pid
|
-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
|
KillMode=process
|
||||||
Restart=always
|
Restart=always
|
||||||
TimeoutSec=120
|
TimeoutSec=120
|
||||||
|
|
Loading…
Add table
Reference in a new issue