Rename bcash packages to match coin naming convention
This commit is contained in:
parent
a7595e695e
commit
247faf23a1
34
README.md
34
README.md
@ -76,8 +76,8 @@ Blockbook logs only to stderr, logging to files is disabled. Verbosity of logs c
|
|||||||
|
|
||||||
- [Bitcoin](bchain/coins/btc/btc.md)
|
- [Bitcoin](bchain/coins/btc/btc.md)
|
||||||
- [Bitcoin Testnet](bchain/coins/btc/btctestnet.md)
|
- [Bitcoin Testnet](bchain/coins/btc/btctestnet.md)
|
||||||
- BCH
|
- Bcash
|
||||||
- BCH Testnet
|
- Bcash Testnet
|
||||||
- [ZCash](bchain/coins/zec/zec.md)
|
- [ZCash](bchain/coins/zec/zec.md)
|
||||||
- ZCash Testnet
|
- ZCash Testnet
|
||||||
- [Ethereum](bchain/coins/eth/eth.md)
|
- [Ethereum](bchain/coins/eth/eth.md)
|
||||||
@ -129,21 +129,21 @@ The data are separated to different column families:
|
|||||||
|
|
||||||
## Registry of ports
|
## Registry of ports
|
||||||
|
|
||||||
| coin | blockbook http port | blockbook socket.io port | RPC port | zmq port |
|
| coin | blockbook http port | blockbook socket.io port | RPC port | zmq port |
|
||||||
|-------------|---------------------|--------------------------|----------|----------|
|
|--------------------------|---------------------|--------------------------|----------|----------|
|
||||||
| btc | 9030 | 9130 | 8030 | 38330 |
|
| Bitcoin | 9030 | 9130 | 8030 | 38330 |
|
||||||
| bch | 9031 | 9131 | 8031 | 38331 |
|
| Bcash | 9031 | 9131 | 8031 | 38331 |
|
||||||
| zec | 9032 | 9132 | 8032 | 38332 |
|
| Zcash | 9032 | 9132 | 8032 | 38332 |
|
||||||
| dash | 9033 | 9133 | 8033 | 38333 |
|
| dash | 9033 | 9133 | 8033 | 38333 |
|
||||||
| ltc | 9034 | 9134 | 8034 | 38334 |
|
| ltc | 9034 | 9134 | 8034 | 38334 |
|
||||||
| btg | 9035 | 9135 | 8035 | 38335 |
|
| btg | 9035 | 9135 | 8035 | 38335 |
|
||||||
| eth | 9036 | 9136 | 8036 | 38336* |
|
| Ethereum | 9036 | 9136 | 8036 | 38336* |
|
||||||
| etc | 9037 | 9137 | 8037 | |
|
| etc | 9037 | 9137 | 8037 | |
|
||||||
| xem | 9038 | 9138 | 8038 | 38336 |
|
| xem | 9038 | 9138 | 8038 | 38336 |
|
||||||
| btc-testnet | 19030 | 19130 | 18030 | 48330 |
|
| Bitcoin Testnet | 19030 | 19130 | 18030 | 48330 |
|
||||||
| bch-testnet | 19031 | 19131 | 18031 | 48331 |
|
| Bcash Testnet | 19031 | 19131 | 18031 | 48331 |
|
||||||
| zec-testnet | 19032 | 19132 | 18032 | 48332 |
|
| Zcash Testnet | 19032 | 19132 | 18032 | 48332 |
|
||||||
| eth-ropsten | 19036 | 19136 | 18036 | 48333* |
|
| Ethereum Testnet Ropsten | 19036 | 19136 | 18036 | 48333* |
|
||||||
\* geth listens on this port, however not as zmq service
|
\* geth listens on this port, however not as zmq service
|
||||||
|
|
||||||
## Todo
|
## Todo
|
||||||
|
|||||||
1
build/deb/debian/blockbook-bcash-testnet.conffiles
Normal file
1
build/deb/debian/blockbook-bcash-testnet.conffiles
Normal file
@ -0,0 +1 @@
|
|||||||
|
/opt/coins/blockbook/bcash_testnet/config/blockchaincfg.json
|
||||||
2
build/deb/debian/blockbook-bcash-testnet.cron.daily
Normal file
2
build/deb/debian/blockbook-bcash-testnet.cron.daily
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
/opt/coins/blockbook/bcash_testnet/bin/logrotate.sh
|
||||||
2
build/deb/debian/blockbook-bcash-testnet.dirs
Normal file
2
build/deb/debian/blockbook-bcash-testnet.dirs
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
/opt/coins/data/bcash_testnet/blockbook
|
||||||
|
/opt/coins/blockbook/bcash_testnet/logs
|
||||||
6
build/deb/debian/blockbook-bcash-testnet.install
Executable file
6
build/deb/debian/blockbook-bcash-testnet.install
Executable file
@ -0,0 +1,6 @@
|
|||||||
|
#!/usr/bin/dh-exec
|
||||||
|
blockbook /opt/coins/blockbook/bcash_testnet/bin
|
||||||
|
cert /opt/coins/blockbook/bcash_testnet
|
||||||
|
static /opt/coins/blockbook/bcash_testnet
|
||||||
|
configs/bcash_testnet.json => /opt/coins/blockbook/bcash_testnet/config/blockchaincfg.json
|
||||||
|
logrotate.sh /opt/coins/blockbook/bcash_testnet/bin
|
||||||
2
build/deb/debian/blockbook-bcash-testnet.links
Normal file
2
build/deb/debian/blockbook-bcash-testnet.links
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
/opt/coins/blockbook/bcash_testnet/cert/testcert.crt /opt/coins/blockbook/bcash_testnet/cert/blockbook.crt
|
||||||
|
/opt/coins/blockbook/bcash_testnet/cert/testcert.key /opt/coins/blockbook/bcash_testnet/cert/blockbook.key
|
||||||
23
build/deb/debian/blockbook-bcash-testnet.postinst
Normal file
23
build/deb/debian/blockbook-bcash-testnet.postinst
Normal file
@ -0,0 +1,23 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
set -e
|
||||||
|
|
||||||
|
case "$1" in
|
||||||
|
|
||||||
|
configure)
|
||||||
|
if ! id -u blockbook-bcash &> /dev/null
|
||||||
|
then
|
||||||
|
useradd --system -M -U blockbook-bcash -s /bin/false
|
||||||
|
fi
|
||||||
|
|
||||||
|
for dir in /opt/coins/data/bcash_testnet/blockbook /opt/coins/blockbook/bcash_testnet/logs
|
||||||
|
do
|
||||||
|
if [ "$(stat -c '%U' $dir)" != "blockbook-bcash" ]
|
||||||
|
then
|
||||||
|
chown -R blockbook-bcash:blockbook-bcash $dir
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
;;
|
||||||
|
|
||||||
|
esac
|
||||||
|
|
||||||
|
#DEBHELPER#
|
||||||
@ -1,20 +1,20 @@
|
|||||||
# It is not recommended to modify this file in-place, because it will
|
# It is not recommended to modify this file in-place, because it will
|
||||||
# be overwritten during package upgrades. If you want to add further
|
# be overwritten during package upgrades. If you want to add further
|
||||||
# options or overwrite existing ones then use
|
# options or overwrite existing ones then use
|
||||||
# $ systemctl edit blockbook-bch-testnet.service
|
# $ systemctl edit blockbook-bcash-testnet.service
|
||||||
# See "man systemd.service" for details.
|
# See "man systemd.service" for details.
|
||||||
|
|
||||||
[Unit]
|
[Unit]
|
||||||
Description=Blockbook daemon (BCH testnet)
|
Description=Blockbook daemon (Bcash testnet)
|
||||||
After=network.target
|
After=network.target
|
||||||
Wants=bcash-testnet.service
|
Wants=bcash-testnet.service
|
||||||
|
|
||||||
[Service]
|
[Service]
|
||||||
ExecStart=/opt/coins/blockbook/bch-testnet/bin/blockbook -coin=bch-testnet -blockchaincfg=/opt/coins/blockbook/bch-testnet/config/blockchaincfg.json -datadir=/opt/coins/data/bch-testnet/blockbook/db -sync -httpserver=:19031 -socketio=:19131 -certfile=/opt/coins/blockbook/bch-testnet/cert/blockbook -explorer=https://bitcoincash.blockexplorer.com/ -log_dir=/opt/coins/blockbook/bch-testnet/logs
|
ExecStart=/opt/coins/blockbook/bcash_testnet/bin/blockbook -blockchaincfg=/opt/coins/blockbook/bcash_testnet/config/blockchaincfg.json -datadir=/opt/coins/data/bcash_testnet/blockbook/db -sync -httpserver=:19031 -socketio=:19131 -certfile=/opt/coins/blockbook/bcash_testnet/cert/blockbook -explorer=https://bitcoincash.blockexplorer.com/ -log_dir=/opt/coins/blockbook/bcash_testnet/logs
|
||||||
User=blockbook-bch
|
User=blockbook-bcash
|
||||||
Type=simple
|
Type=simple
|
||||||
Restart=on-failure
|
Restart=on-failure
|
||||||
WorkingDirectory=/opt/coins/blockbook/bch-testnet
|
WorkingDirectory=/opt/coins/blockbook/bcash_testnet
|
||||||
|
|
||||||
# Resource limits
|
# Resource limits
|
||||||
LimitNOFILE=500000
|
LimitNOFILE=500000
|
||||||
1
build/deb/debian/blockbook-bcash.conffiles
Normal file
1
build/deb/debian/blockbook-bcash.conffiles
Normal file
@ -0,0 +1 @@
|
|||||||
|
/opt/coins/blockbook/bcash/config/blockchaincfg.json
|
||||||
2
build/deb/debian/blockbook-bcash.cron.daily
Normal file
2
build/deb/debian/blockbook-bcash.cron.daily
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
/opt/coins/blockbook/bcash/bin/logrotate.sh
|
||||||
2
build/deb/debian/blockbook-bcash.dirs
Normal file
2
build/deb/debian/blockbook-bcash.dirs
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
/opt/coins/data/bcash/blockbook
|
||||||
|
/opt/coins/blockbook/bcash/logs
|
||||||
6
build/deb/debian/blockbook-bcash.install
Executable file
6
build/deb/debian/blockbook-bcash.install
Executable file
@ -0,0 +1,6 @@
|
|||||||
|
#!/usr/bin/dh-exec
|
||||||
|
blockbook /opt/coins/blockbook/bcash/bin
|
||||||
|
cert /opt/coins/blockbook/bcash
|
||||||
|
static /opt/coins/blockbook/bcash
|
||||||
|
configs/bcash.json => /opt/coins/blockbook/bcash/config/blockchaincfg.json
|
||||||
|
logrotate.sh /opt/coins/blockbook/bcash/bin
|
||||||
2
build/deb/debian/blockbook-bcash.links
Normal file
2
build/deb/debian/blockbook-bcash.links
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
/opt/coins/blockbook/bcash/cert/testcert.crt /opt/coins/blockbook/bcash/cert/blockbook.crt
|
||||||
|
/opt/coins/blockbook/bcash/cert/testcert.key /opt/coins/blockbook/bcash/cert/blockbook.key
|
||||||
23
build/deb/debian/blockbook-bcash.postinst
Normal file
23
build/deb/debian/blockbook-bcash.postinst
Normal file
@ -0,0 +1,23 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
set -e
|
||||||
|
|
||||||
|
case "$1" in
|
||||||
|
|
||||||
|
configure)
|
||||||
|
if ! id -u blockbook-bcash &> /dev/null
|
||||||
|
then
|
||||||
|
useradd --system -M -U blockbook-bcash -s /bin/false
|
||||||
|
fi
|
||||||
|
|
||||||
|
for dir in /opt/coins/data/bcash/blockbook /opt/coins/blockbook/bcash/logs
|
||||||
|
do
|
||||||
|
if [ "$(stat -c '%U' $dir)" != "blockbook-bcash" ]
|
||||||
|
then
|
||||||
|
chown -R blockbook-bcash:blockbook-bcash $dir
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
;;
|
||||||
|
|
||||||
|
esac
|
||||||
|
|
||||||
|
#DEBHELPER#
|
||||||
@ -1,20 +1,20 @@
|
|||||||
# It is not recommended to modify this file in-place, because it will
|
# It is not recommended to modify this file in-place, because it will
|
||||||
# be overwritten during package upgrades. If you want to add further
|
# be overwritten during package upgrades. If you want to add further
|
||||||
# options or overwrite existing ones then use
|
# options or overwrite existing ones then use
|
||||||
# $ systemctl edit blockbook-bch.service
|
# $ systemctl edit blockbook-bcash.service
|
||||||
# See "man systemd.service" for details.
|
# See "man systemd.service" for details.
|
||||||
|
|
||||||
[Unit]
|
[Unit]
|
||||||
Description=Blockbook daemon (BCH mainnet)
|
Description=Blockbook daemon (Bcash mainnet)
|
||||||
After=network.target
|
After=network.target
|
||||||
Wants=bcash-bch.service
|
Wants=bcash.service
|
||||||
|
|
||||||
[Service]
|
[Service]
|
||||||
ExecStart=/opt/coins/blockbook/bch/bin/blockbook -coin=bch -blockchaincfg=/opt/coins/blockbook/bch/config/blockchaincfg.json -datadir=/opt/coins/data/bch/blockbook/db -sync -httpserver=:9031 -socketio=:9131 -certfile=/opt/coins/blockbook/bch/cert/blockbook -explorer=https://bitcoincash.blockexplorer.com/ -log_dir=/opt/coins/blockbook/bch/logs
|
ExecStart=/opt/coins/blockbook/bcash/bin/blockbook -blockchaincfg=/opt/coins/blockbook/bcash/config/blockchaincfg.json -datadir=/opt/coins/data/bcash/blockbook/db -sync -httpserver=:9031 -socketio=:9131 -certfile=/opt/coins/blockbook/bcash/cert/blockbook -explorer=https://bitcoincash.blockexplorer.com/ -log_dir=/opt/coins/blockbook/bcash/logs
|
||||||
User=blockbook-bch
|
User=blockbook-bcash
|
||||||
Type=simple
|
Type=simple
|
||||||
Restart=on-failure
|
Restart=on-failure
|
||||||
WorkingDirectory=/opt/coins/blockbook/bch
|
WorkingDirectory=/opt/coins/blockbook/bcash
|
||||||
|
|
||||||
# Resource limits
|
# Resource limits
|
||||||
LimitNOFILE=500000
|
LimitNOFILE=500000
|
||||||
@ -1 +0,0 @@
|
|||||||
/opt/coins/blockbook/bch-testnet/config/blockchaincfg.json
|
|
||||||
@ -1,2 +0,0 @@
|
|||||||
#!/bin/sh
|
|
||||||
/opt/coins/blockbook/bch-testnet/bin/logrotate.sh
|
|
||||||
@ -1,2 +0,0 @@
|
|||||||
/opt/coins/data/bch-testnet/blockbook
|
|
||||||
/opt/coins/blockbook/bch-testnet/logs
|
|
||||||
@ -1,6 +0,0 @@
|
|||||||
#!/usr/bin/dh-exec
|
|
||||||
blockbook /opt/coins/blockbook/bch-testnet/bin
|
|
||||||
cert /opt/coins/blockbook/bch-testnet
|
|
||||||
static /opt/coins/blockbook/bch-testnet
|
|
||||||
configs/bch-testnet.json => /opt/coins/blockbook/bch-testnet/config/blockchaincfg.json
|
|
||||||
logrotate.sh /opt/coins/blockbook/bch-testnet/bin
|
|
||||||
@ -1,2 +0,0 @@
|
|||||||
/opt/coins/blockbook/bch-testnet/cert/testcert.crt /opt/coins/blockbook/bch-testnet/cert/blockbook.crt
|
|
||||||
/opt/coins/blockbook/bch-testnet/cert/testcert.key /opt/coins/blockbook/bch-testnet/cert/blockbook.key
|
|
||||||
@ -1,23 +0,0 @@
|
|||||||
#!/bin/bash
|
|
||||||
set -e
|
|
||||||
|
|
||||||
case "$1" in
|
|
||||||
|
|
||||||
configure)
|
|
||||||
if ! id -u blockbook-bch &> /dev/null
|
|
||||||
then
|
|
||||||
useradd --system -M -U blockbook-bch -s /bin/false
|
|
||||||
fi
|
|
||||||
|
|
||||||
for dir in /opt/coins/data/bch-testnet/blockbook /opt/coins/blockbook/bch-testnet/logs
|
|
||||||
do
|
|
||||||
if [ "$(stat -c '%U' $dir)" != "blockbook-bch" ]
|
|
||||||
then
|
|
||||||
chown -R blockbook-bch:blockbook-bch $dir
|
|
||||||
fi
|
|
||||||
done
|
|
||||||
;;
|
|
||||||
|
|
||||||
esac
|
|
||||||
|
|
||||||
#DEBHELPER#
|
|
||||||
@ -1 +0,0 @@
|
|||||||
/opt/coins/blockbook/bch/config/blockchaincfg.json
|
|
||||||
@ -1,2 +0,0 @@
|
|||||||
#!/bin/sh
|
|
||||||
/opt/coins/blockbook/bch/bin/logrotate.sh
|
|
||||||
@ -1,2 +0,0 @@
|
|||||||
/opt/coins/data/bch/blockbook
|
|
||||||
/opt/coins/blockbook/bch/logs
|
|
||||||
@ -1,6 +0,0 @@
|
|||||||
#!/usr/bin/dh-exec
|
|
||||||
blockbook /opt/coins/blockbook/bch/bin
|
|
||||||
cert /opt/coins/blockbook/bch
|
|
||||||
static /opt/coins/blockbook/bch
|
|
||||||
configs/bch.json => /opt/coins/blockbook/bch/config/blockchaincfg.json
|
|
||||||
logrotate.sh /opt/coins/blockbook/bch/bin
|
|
||||||
@ -1,2 +0,0 @@
|
|||||||
/opt/coins/blockbook/bch/cert/testcert.crt /opt/coins/blockbook/bch/cert/blockbook.crt
|
|
||||||
/opt/coins/blockbook/bch/cert/testcert.key /opt/coins/blockbook/bch/cert/blockbook.key
|
|
||||||
@ -1,23 +0,0 @@
|
|||||||
#!/bin/bash
|
|
||||||
set -e
|
|
||||||
|
|
||||||
case "$1" in
|
|
||||||
|
|
||||||
configure)
|
|
||||||
if ! id -u blockbook-bch &> /dev/null
|
|
||||||
then
|
|
||||||
useradd --system -M -U blockbook-bch -s /bin/false
|
|
||||||
fi
|
|
||||||
|
|
||||||
for dir in /opt/coins/data/bch/blockbook /opt/coins/blockbook/bch/logs
|
|
||||||
do
|
|
||||||
if [ "$(stat -c '%U' $dir)" != "blockbook-bch" ]
|
|
||||||
then
|
|
||||||
chown -R blockbook-bch:blockbook-bch $dir
|
|
||||||
fi
|
|
||||||
done
|
|
||||||
;;
|
|
||||||
|
|
||||||
esac
|
|
||||||
|
|
||||||
#DEBHELPER#
|
|
||||||
@ -30,12 +30,12 @@ Architecture: amd64
|
|||||||
Depends: ${shlibs:Depends}, ${misc:Depends}, coreutils, passwd, findutils, psmisc, zcash-testnet
|
Depends: ${shlibs:Depends}, ${misc:Depends}, coreutils, passwd, findutils, psmisc, zcash-testnet
|
||||||
Description: Satoshilabs blockbook server (ZCash testnet)
|
Description: Satoshilabs blockbook server (ZCash testnet)
|
||||||
|
|
||||||
Package: blockbook-bch
|
Package: blockbook-bcash
|
||||||
Architecture: amd64
|
Architecture: amd64
|
||||||
Depends: ${shlibs:Depends}, ${misc:Depends}, coreutils, passwd, findutils, psmisc, bcash-bch
|
Depends: ${shlibs:Depends}, ${misc:Depends}, coreutils, passwd, findutils, psmisc, bcash
|
||||||
Description: Satoshilabs blockbook server (Bitcoin Cash mainnet)
|
Description: Satoshilabs blockbook server (Bitcoin Cash mainnet)
|
||||||
|
|
||||||
Package: blockbook-bch-testnet
|
Package: blockbook-bcash-testnet
|
||||||
Architecture: amd64
|
Architecture: amd64
|
||||||
Depends: ${shlibs:Depends}, ${misc:Depends}, coreutils, passwd, findutils, psmisc, bcash-testnet
|
Depends: ${shlibs:Depends}, ${misc:Depends}, coreutils, passwd, findutils, psmisc, bcash-testnet
|
||||||
Description: Satoshilabs blockbook server (Bitcoin Cash testnet)
|
Description: Satoshilabs blockbook server (Bitcoin Cash testnet)
|
||||||
|
|||||||
@ -1,4 +1,5 @@
|
|||||||
{
|
{
|
||||||
|
"coin_name": "Bcash",
|
||||||
"rpcURL": "http://127.0.0.1:8031",
|
"rpcURL": "http://127.0.0.1:8031",
|
||||||
"rpcUser": "rpc",
|
"rpcUser": "rpc",
|
||||||
"rpcPass": "rpc",
|
"rpcPass": "rpc",
|
||||||
@ -1,4 +1,5 @@
|
|||||||
{
|
{
|
||||||
|
"coin_name": "Bcash Testnet",
|
||||||
"rpcURL": "http://localhost:18031",
|
"rpcURL": "http://localhost:18031",
|
||||||
"rpcUser": "rpc",
|
"rpcUser": "rpc",
|
||||||
"rpcPass": "rpc",
|
"rpcPass": "rpc",
|
||||||
@ -1 +0,0 @@
|
|||||||
/opt/coins/nodes/bitcoin-abc/bch/bch.conf
|
|
||||||
@ -1 +0,0 @@
|
|||||||
/opt/coins/data/bch/bitcoin
|
|
||||||
@ -1,2 +0,0 @@
|
|||||||
bitcoin-abc/* /opt/coins/nodes/bitcoin-abc/bch
|
|
||||||
bch.conf /opt/coins/nodes/bitcoin-abc/bch
|
|
||||||
@ -1 +1 @@
|
|||||||
/opt/coins/nodes/bitcoin-abc/bch-testnet/bch-testnet.conf
|
/opt/coins/nodes/bcash_testnet/bcash_testnet.conf
|
||||||
|
|||||||
@ -1 +1 @@
|
|||||||
/opt/coins/data/bch-testnet/bitcoin
|
/opt/coins/data/bcash_testnet/backend
|
||||||
|
|||||||
@ -1,2 +1,2 @@
|
|||||||
bitcoin-abc/* /opt/coins/nodes/bitcoin-abc/bch-testnet
|
bitcoin-abc/* /opt/coins/nodes/bcash_testnet
|
||||||
bch-testnet.conf /opt/coins/nodes/bitcoin-abc/bch-testnet
|
bcash_testnet.conf /opt/coins/nodes/bcash_testnet
|
||||||
|
|||||||
@ -1,5 +1,5 @@
|
|||||||
/opt/coins/data/bch-testnet/bitcoin/testnet3/debug.log
|
/opt/coins/data/bcash_testnet/backend/testnet3/debug.log
|
||||||
/opt/coins/data/bch-testnet/bitcoin/testnet3/db.log
|
/opt/coins/data/bcash_testnet/backend/testnet3/db.log
|
||||||
{
|
{
|
||||||
rotate 7
|
rotate 7
|
||||||
daily
|
daily
|
||||||
|
|||||||
@ -9,9 +9,9 @@ case "$1" in
|
|||||||
useradd --system -M -U bcash -s /bin/false
|
useradd --system -M -U bcash -s /bin/false
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ "$(stat -c '%U' /opt/coins/data/bch-testnet/bitcoin)" != "bcash" ]
|
if [ "$(stat -c '%U' /opt/coins/data/bcash_testnet/backend)" != "bcash" ]
|
||||||
then
|
then
|
||||||
chown -R bcash:bcash /opt/coins/data/bch-testnet/bitcoin
|
chown -R bcash:bcash /opt/coins/data/bcash_testnet/backend
|
||||||
fi
|
fi
|
||||||
;;
|
;;
|
||||||
|
|
||||||
|
|||||||
@ -5,19 +5,19 @@
|
|||||||
# See "man systemd.service" for details.
|
# See "man systemd.service" for details.
|
||||||
|
|
||||||
# Note that almost all daemon options could be specified in
|
# Note that almost all daemon options could be specified in
|
||||||
# /opt/coins/nodes/bitcoin-abc/bch-testnet/bch-testnet.conf
|
# /opt/coins/nodes/bcash_testnet/bcash_testnet.conf
|
||||||
|
|
||||||
[Unit]
|
[Unit]
|
||||||
Description=Bitcoin Cash daemon (testnet)
|
Description=Bitcoin Cash daemon (testnet)
|
||||||
After=network.target
|
After=network.target
|
||||||
|
|
||||||
[Service]
|
[Service]
|
||||||
ExecStart=/opt/coins/nodes/bitcoin-abc/bch-testnet/bin/bitcoind -datadir=/opt/coins/data/bch-testnet/bitcoin -conf=/opt/coins/nodes/bitcoin-abc/bch-testnet/bch-testnet.conf -pid=/run/bitcoin-abc/bch-testnet.pid
|
ExecStart=/opt/coins/nodes/bcash_testnet/bin/bitcoind -datadir=/opt/coins/data/bcash_testnet/backend -conf=/opt/coins/nodes/bcash_testnet/bcash_testnet.conf -pid=/run/bitcoin-abc/bcash_testnet.pid
|
||||||
# Creates /run/bitcoin-abc owned by bcash
|
# Creates /run/bitcoin-abc owned by bcash
|
||||||
RuntimeDirectory=bitcoin-abc
|
RuntimeDirectory=bitcoin-abc
|
||||||
User=bcash
|
User=bcash
|
||||||
Type=forking
|
Type=forking
|
||||||
PIDFile=/run/bitcoin-abc/bch-testnet.pid
|
PIDFile=/run/bitcoin-abc/bcash_testnet.pid
|
||||||
Restart=on-failure
|
Restart=on-failure
|
||||||
|
|
||||||
# Resource limits
|
# Resource limits
|
||||||
|
|||||||
1
contrib/backends/bcash/debian/bcash.conffiles
Normal file
1
contrib/backends/bcash/debian/bcash.conffiles
Normal file
@ -0,0 +1 @@
|
|||||||
|
/opt/coins/nodes/bcash/bcash.conf
|
||||||
1
contrib/backends/bcash/debian/bcash.dirs
Normal file
1
contrib/backends/bcash/debian/bcash.dirs
Normal file
@ -0,0 +1 @@
|
|||||||
|
/opt/coins/data/bcash/backend
|
||||||
2
contrib/backends/bcash/debian/bcash.install
Normal file
2
contrib/backends/bcash/debian/bcash.install
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
bitcoin-abc/* /opt/coins/nodes/bcash
|
||||||
|
bcash.conf /opt/coins/nodes/bcash
|
||||||
@ -1,5 +1,5 @@
|
|||||||
/opt/coins/data/bch/bitcoin/debug.log
|
/opt/coins/data/bcash/backend/debug.log
|
||||||
/opt/coins/data/bch/bitcoin/db.log
|
/opt/coins/data/bcash/backend/db.log
|
||||||
{
|
{
|
||||||
rotate 7
|
rotate 7
|
||||||
daily
|
daily
|
||||||
@ -9,9 +9,9 @@ case "$1" in
|
|||||||
useradd --system -M -U bcash -s /bin/false
|
useradd --system -M -U bcash -s /bin/false
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ "$(stat -c '%U' /opt/coins/data/bch/bitcoin)" != "bcash" ]
|
if [ "$(stat -c '%U' /opt/coins/data/bcash/backend)" != "bcash" ]
|
||||||
then
|
then
|
||||||
chown -R bcash:bcash /opt/coins/data/bch/bitcoin
|
chown -R bcash:bcash /opt/coins/data/bcash/backend
|
||||||
fi
|
fi
|
||||||
;;
|
;;
|
||||||
|
|
||||||
@ -1,23 +1,23 @@
|
|||||||
# It is not recommended to modify this file in-place, because it will
|
# It is not recommended to modify this file in-place, because it will
|
||||||
# be overwritten during package upgrades. If you want to add further
|
# be overwritten during package upgrades. If you want to add further
|
||||||
# options or overwrite existing ones then use
|
# options or overwrite existing ones then use
|
||||||
# $ systemctl edit bcash-bch.service
|
# $ systemctl edit bcash.service
|
||||||
# See "man systemd.service" for details.
|
# See "man systemd.service" for details.
|
||||||
|
|
||||||
# Note that almost all daemon options could be specified in
|
# Note that almost all daemon options could be specified in
|
||||||
# /opt/coins/nodes/bitcoin-abc/bch/bch.conf
|
# /opt/coins/nodes/bcash/bcash.conf
|
||||||
|
|
||||||
[Unit]
|
[Unit]
|
||||||
Description=Bitcoin Cash daemon (mainnet)
|
Description=Bitcoin Cash daemon (mainnet)
|
||||||
After=network.target
|
After=network.target
|
||||||
|
|
||||||
[Service]
|
[Service]
|
||||||
ExecStart=/opt/coins/nodes/bitcoin-abc/bch/bin/bitcoind -datadir=/opt/coins/data/bch/bitcoin -conf=/opt/coins/nodes/bitcoin-abc/bch/bch.conf -pid=/run/bitcoin-abc/bch.pid
|
ExecStart=/opt/coins/nodes/bcash/bin/bitcoind -datadir=/opt/coins/data/bcash/backend -conf=/opt/coins/nodes/bcash/bcash.conf -pid=/run/bitcoin-abc/bcash.pid
|
||||||
# Creates /run/bitcoin-abc owned by bcash
|
# Creates /run/bitcoin-abc owned by bcash
|
||||||
RuntimeDirectory=bitcoin-abc
|
RuntimeDirectory=bitcoin-abc
|
||||||
User=bcash
|
User=bcash
|
||||||
Type=forking
|
Type=forking
|
||||||
PIDFile=/run/bitcoin-abc/bch.pid
|
PIDFile=/run/bitcoin-abc/bcash.pid
|
||||||
Restart=on-failure
|
Restart=on-failure
|
||||||
|
|
||||||
# Resource limits
|
# Resource limits
|
||||||
@ -1,3 +1,9 @@
|
|||||||
|
bcash (0.17.1-satoshilabs4) unstable; urgency=medium
|
||||||
|
|
||||||
|
* Rename packages and directories
|
||||||
|
|
||||||
|
-- Martin Bohm <martin.bohm@satoshilabs.com> Wed, 06 Jun 2018 11:12:13 +0200
|
||||||
|
|
||||||
bcash (0.17.1-satoshilabs3) unstable; urgency=medium
|
bcash (0.17.1-satoshilabs3) unstable; urgency=medium
|
||||||
|
|
||||||
* Increased limits in backend configs
|
* Increased limits in backend configs
|
||||||
|
|||||||
@ -5,7 +5,7 @@ Maintainer: jakub.matys@satoshilabs.com
|
|||||||
Build-Depends: debhelper, wget, tar, gzip, make, dh-systemd, dh-exec
|
Build-Depends: debhelper, wget, tar, gzip, make, dh-systemd, dh-exec
|
||||||
Standards-Version: 3.9.5
|
Standards-Version: 3.9.5
|
||||||
|
|
||||||
Package: bcash-bch
|
Package: bcash
|
||||||
Architecture: amd64
|
Architecture: amd64
|
||||||
Depends: ${shlibs:Depends}, ${misc:Depends}, logrotate
|
Depends: ${shlibs:Depends}, ${misc:Depends}, logrotate
|
||||||
Description: Satoshilabs packaged bitcoin-cash server
|
Description: Satoshilabs packaged bitcoin-cash server
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user