Changed backends' data directories

This commit is contained in:
Jakub Matys 2018-05-11 13:24:32 +02:00
parent b8d23f3e1e
commit ab2a1a6f48
20 changed files with 32 additions and 32 deletions

View File

@ -1 +1 @@
/data/bch/bitcoin /opt/coins/data/bch/bitcoin

View File

@ -1,5 +1,5 @@
/data/bch/bitcoin/debug.log /opt/coins/data/bch/bitcoin/debug.log
/data/bch/bitcoin/db.log /opt/coins/data/bch/bitcoin/db.log
{ {
rotate 7 rotate 7
daily daily

View File

@ -9,9 +9,9 @@ case "$1" in
useradd --system -M -U bitcoin useradd --system -M -U bitcoin
fi fi
if [ "$(stat -c '%U' /data/bch/bitcoin)" != "bitcoin" ] if [ "$(stat -c '%U' /opt/coins/data/bch/bitcoin)" != "bitcoin" ]
then then
chown bitcoin:bitcoin /data/bch/bitcoin chown bitcoin:bitcoin /opt/coins/data/bch/bitcoin
fi fi
;; ;;

View File

@ -12,7 +12,7 @@ Description=Bitcoin Cash daemon (mainnet)
After=network.target After=network.target
[Service] [Service]
ExecStart=/opt/bitcoin/bch/bin/bitcoind -datadir=/data/bch/bitcoin -conf=/opt/bitcoin/bch/bch.conf -pid=/run/bitcoind/bch.pid ExecStart=/opt/bitcoin/bch/bin/bitcoind -datadir=/opt/coins/data/bch/bitcoin -conf=/opt/bitcoin/bch/bch.conf -pid=/run/bitcoind/bch.pid
# Creates /run/bitcoind owned by bitcoin # Creates /run/bitcoind owned by bitcoin
RuntimeDirectory=bitcoind RuntimeDirectory=bitcoind
User=bitcoin User=bitcoin

View File

@ -1 +1 @@
/data/bch-testnet/bitcoin /opt/coins/data/bch-testnet/bitcoin

View File

@ -1,5 +1,5 @@
/data/bch-testnet/bitcoin/testnet3/debug.log /opt/coins/data/bch-testnet/bitcoin/testnet3/debug.log
/data/bch-testnet/bitcoin/testnet3/db.log /opt/coins/data/bch-testnet/bitcoin/testnet3/db.log
{ {
rotate 7 rotate 7
daily daily

View File

@ -9,9 +9,9 @@ case "$1" in
useradd --system -M -U bitcoin useradd --system -M -U bitcoin
fi fi
if [ "$(stat -c '%U' /data/bch-testnet/bitcoin)" != "bitcoin" ] if [ "$(stat -c '%U' /opt/coins/data/bch-testnet/bitcoin)" != "bitcoin" ]
then then
chown bitcoin:bitcoin /data/bch-testnet/bitcoin chown bitcoin:bitcoin /opt/coins/data/bch-testnet/bitcoin
fi fi
;; ;;

View File

@ -12,7 +12,7 @@ Description=Bitcoin Cash daemon (testnet)
After=network.target After=network.target
[Service] [Service]
ExecStart=/opt/bitcoin/bch-testnet/bin/bitcoind -datadir=/data/bch-testnet/bitcoin -conf=/opt/bitcoin/bch-testnet/bch-testnet.conf -pid=/run/bitcoind/bch-testnet.pid ExecStart=/opt/bitcoin/bch-testnet/bin/bitcoind -datadir=/opt/coins/data/bch-testnet/bitcoin -conf=/opt/bitcoin/bch-testnet/bch-testnet.conf -pid=/run/bitcoind/bch-testnet.pid
# Creates /run/bitcoind owned by bitcoin # Creates /run/bitcoind owned by bitcoin
RuntimeDirectory=bitcoind RuntimeDirectory=bitcoind
User=bitcoin User=bitcoin

View File

@ -1 +1 @@
/data/btc/bitcoin /opt/coins/data/btc/bitcoin

View File

@ -1,5 +1,5 @@
/data/btc/bitcoin/debug.log /opt/coins/data/btc/bitcoin/debug.log
/data/btc/bitcoin/db.log /opt/coins/data/btc/bitcoin/db.log
{ {
rotate 7 rotate 7
daily daily

View File

@ -9,9 +9,9 @@ case "$1" in
useradd --system -M -U bitcoin useradd --system -M -U bitcoin
fi fi
if [ "$(stat -c '%U' /data/btc/bitcoin)" != "bitcoin" ] if [ "$(stat -c '%U' /opt/coins/data/btc/bitcoin)" != "bitcoin" ]
then then
chown bitcoin:bitcoin /data/btc/bitcoin chown bitcoin:bitcoin /opt/coins/data/btc/bitcoin
fi fi
;; ;;

View File

@ -12,7 +12,7 @@ Description=Bitcoin daemon (mainnet)
After=network.target After=network.target
[Service] [Service]
ExecStart=/opt/bitcoin/btc/bin/bitcoind -datadir=/data/btc/bitcoin -conf=/opt/bitcoin/btc/btc.conf -pid=/run/bitcoind/btc.pid ExecStart=/opt/bitcoin/btc/bin/bitcoind -datadir=/opt/coins/data/btc/bitcoin -conf=/opt/bitcoin/btc/btc.conf -pid=/run/bitcoind/btc.pid
# Creates /run/bitcoind owned by bitcoin # Creates /run/bitcoind owned by bitcoin
RuntimeDirectory=bitcoind RuntimeDirectory=bitcoind
User=bitcoin User=bitcoin

View File

@ -1 +1 @@
/data/btc-testnet/bitcoin /opt/coins/data/btc-testnet/bitcoin

View File

@ -1,5 +1,5 @@
/data/btc-testnet/bitcoin/testnet3/debug.log /opt/coins/data/btc-testnet/bitcoin/testnet3/debug.log
/data/btc-testnet/bitcoin/testnet3/db.log /opt/coins/data/btc-testnet/bitcoin/testnet3/db.log
{ {
rotate 7 rotate 7
daily daily

View File

@ -9,9 +9,9 @@ case "$1" in
useradd --system -M -U bitcoin useradd --system -M -U bitcoin
fi fi
if [ "$(stat -c '%U' /data/btc-testnet/bitcoin)" != "bitcoin" ] if [ "$(stat -c '%U' /opt/coins/data/btc-testnet/bitcoin)" != "bitcoin" ]
then then
chown bitcoin:bitcoin /data/btc-testnet/bitcoin chown bitcoin:bitcoin /opt/coins/data/btc-testnet/bitcoin
fi fi
;; ;;

View File

@ -12,7 +12,7 @@ Description=Bitcoin daemon (testnet)
After=network.target After=network.target
[Service] [Service]
ExecStart=/opt/bitcoin/btc-testnet/bin/bitcoind -datadir=/data/btc-testnet/bitcoin -conf=/opt/bitcoin/btc-testnet/btc-testnet.conf -pid=/run/bitcoind/testnet.pid ExecStart=/opt/bitcoin/btc-testnet/bin/bitcoind -datadir=/opt/coins/data/btc-testnet/bitcoin -conf=/opt/bitcoin/btc-testnet/btc-testnet.conf -pid=/run/bitcoind/testnet.pid
# Creates /run/bitcoind owned by bitcoin # Creates /run/bitcoind owned by bitcoin
RuntimeDirectory=bitcoind RuntimeDirectory=bitcoind
User=bitcoin User=bitcoin

View File

@ -1 +1 @@
/data/zec/zcash /opt/coins/data/zec/zcash

View File

@ -1,5 +1,5 @@
/data/zec/zcash/debug.log /opt/coins/data/zec/zcash/debug.log
/data/zec/zcash/db.log /opt/coins/data/zec/zcash/db.log
{ {
rotate 7 rotate 7
daily daily

View File

@ -9,12 +9,12 @@ case "$1" in
useradd --system -M -U zcash useradd --system -M -U zcash
fi fi
if [ "$(stat -c '%U' /data/zec/zcash)" != "zcash" ] if [ "$(stat -c '%U' /opt/coins/data/zec/zcash)" != "zcash" ]
then then
chown zcash:zcash /data/zec/zcash chown zcash:zcash /opt/coins/data/zec/zcash
fi fi
HOME=/data/zec/zcash /opt/zcash/zec/bin/zcash-fetch-params HOME=/opt/coins/data/zec/zcash /opt/zcash/zec/bin/zcash-fetch-params
;; ;;
esac esac

View File

@ -12,8 +12,8 @@ Description=ZCash daemon (mainnet)
After=network.target After=network.target
[Service] [Service]
Environment="HOME=/data/zec/zcash" Environment="HOME=/opt/coins/data/zec/zcash"
ExecStart=/opt/zcash/zec/bin/zcashd -datadir=/data/zec/zcash -conf=/opt/zcash/zec/zec.conf -pid=/run/zcashd/zec.pid ExecStart=/opt/zcash/zec/bin/zcashd -datadir=/opt/coins/data/zec/zcash -conf=/opt/zcash/zec/zec.conf -pid=/run/zcashd/zec.pid
# Creates /run/zcashd owned by zcash # Creates /run/zcashd owned by zcash
RuntimeDirectory=zcashd RuntimeDirectory=zcashd
User=zcash User=zcash