backend binaries and configs are installed to dedicated directories
This commit is contained in:
parent
cf27ed086b
commit
6c1e114074
@ -1 +1 @@
|
|||||||
/data/btc/bitcoin/btc.conf
|
/opt/bitcoin/btc/btc.conf
|
||||||
|
|||||||
@ -1 +1,2 @@
|
|||||||
btc.conf /data/btc/bitcoin
|
bitcoin/* /opt/bitcoin/btc
|
||||||
|
btc.conf /opt/bitcoin/btc
|
||||||
|
|||||||
@ -5,14 +5,14 @@
|
|||||||
# 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
|
||||||
# /data/btc/bitcoin/bitcoin.conf
|
# /opt/bitcoin/btc/btc.conf
|
||||||
|
|
||||||
[Unit]
|
[Unit]
|
||||||
Description=Bitcoin daemon (mainnet)
|
Description=Bitcoin daemon (mainnet)
|
||||||
After=network.target
|
After=network.target
|
||||||
|
|
||||||
[Service]
|
[Service]
|
||||||
ExecStart=/opt/satoshilabs/bitcoin/bin/bitcoind -datadir=/data/btc/bitcoin -conf=/data/btc/bitcoin/btc.conf -pid=/run/bitcoind/btc.pid
|
ExecStart=/opt/bitcoin/btc/bin/bitcoind -datadir=/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
|
||||||
|
|||||||
@ -1 +1 @@
|
|||||||
/data/btc-testnet/bitcoin/btc-testnet.conf
|
/opt/bitcoin/btc-testnet/btc-testnet.conf
|
||||||
|
|||||||
@ -1 +1,2 @@
|
|||||||
btc-testnet.conf /data/btc-testnet/bitcoin
|
bitcoin/* /opt/bitcoin/btc-testnet
|
||||||
|
btc-testnet.conf /opt/bitcoin/btc-testnet
|
||||||
|
|||||||
@ -5,14 +5,14 @@
|
|||||||
# 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
|
||||||
# /data/btc-testnet/bitcoin/bitcoin.conf
|
# /opt/bitcoin/btc-testnet/btc-testnet.conf
|
||||||
|
|
||||||
[Unit]
|
[Unit]
|
||||||
Description=Bitcoin daemon (testnet)
|
Description=Bitcoin daemon (testnet)
|
||||||
After=network.target
|
After=network.target
|
||||||
|
|
||||||
[Service]
|
[Service]
|
||||||
ExecStart=/opt/satoshilabs/bitcoin/bin/bitcoind -datadir=/data/btc-testnet/bitcoin -conf=/data/btc-testnet/bitcoin/btc-testnet.conf -pid=/run/bitcoind/testnet.pid
|
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
|
||||||
# Creates /run/bitcoind owned by bitcoin
|
# Creates /run/bitcoind owned by bitcoin
|
||||||
RuntimeDirectory=bitcoind
|
RuntimeDirectory=bitcoind
|
||||||
User=bitcoin
|
User=bitcoin
|
||||||
|
|||||||
@ -1 +0,0 @@
|
|||||||
bitcoin /opt/satoshilabs
|
|
||||||
@ -1,2 +0,0 @@
|
|||||||
/opt/satoshilabs/bitcoin/bin/bitcoind /usr/bin/bitcoind
|
|
||||||
/opt/satoshilabs/bitcoin/bin/bitcoin-cli /usr/bin/bitcoin-cli
|
|
||||||
@ -2,20 +2,15 @@ Source: bitcoin
|
|||||||
Section: satoshilabs
|
Section: satoshilabs
|
||||||
Priority: optional
|
Priority: optional
|
||||||
Maintainer: jakub.matys@satoshilabs.com
|
Maintainer: jakub.matys@satoshilabs.com
|
||||||
Build-Depends: debhelper, wget, tar, gzip, make, dh-systemd
|
Build-Depends: debhelper, wget, tar, gzip, make, dh-systemd, dh-exec
|
||||||
Standards-Version: 3.9.5
|
Standards-Version: 3.9.5
|
||||||
|
|
||||||
Package: bitcoin
|
|
||||||
Architecture: amd64
|
|
||||||
Depends: ${shlibs:Depends}, ${misc:Depends}
|
|
||||||
Description: Satoshilabs packaged bitcoin server (binaries)
|
|
||||||
|
|
||||||
Package: bitcoin-btc
|
Package: bitcoin-btc
|
||||||
Architecture: all
|
Architecture: amd64
|
||||||
Depends: bitcoin (= ${binary:Version}), logrotate
|
Depends: ${shlibs:Depends}, ${misc:Depends}, logrotate
|
||||||
Description: Satoshilabs packaged bitcoin server (configuration)
|
Description: Satoshilabs packaged bitcoin server
|
||||||
|
|
||||||
Package: bitcoin-testnet
|
Package: bitcoin-testnet
|
||||||
Architecture: all
|
Architecture: amd64
|
||||||
Depends: bitcoin (= ${binary:Version}), logrotate
|
Depends: ${shlibs:Depends}, ${misc:Depends}, logrotate
|
||||||
Description: Satoshilabs packaged bitcoin server (configuration)
|
Description: Satoshilabs packaged bitcoin server
|
||||||
|
|||||||
@ -2,15 +2,10 @@ Source: zcash
|
|||||||
Section: satoshilabs
|
Section: satoshilabs
|
||||||
Priority: optional
|
Priority: optional
|
||||||
Maintainer: jakub.matys@satoshilabs.com
|
Maintainer: jakub.matys@satoshilabs.com
|
||||||
Build-Depends: debhelper, wget, tar, gzip, make, dh-systemd
|
Build-Depends: debhelper, wget, tar, gzip, make, dh-systemd, dh-exec
|
||||||
Standards-Version: 3.9.5
|
Standards-Version: 3.9.5
|
||||||
|
|
||||||
Package: zcash
|
|
||||||
Architecture: amd64
|
|
||||||
Depends: ${shlibs:Depends}, ${misc:Depends}
|
|
||||||
Description: Satoshilabs packaged zcash server (binaries)
|
|
||||||
|
|
||||||
Package: zcash-zec
|
Package: zcash-zec
|
||||||
Architecture: all
|
Architecture: amd64
|
||||||
Depends: zcash (= ${binary:Version}), logrotate
|
Depends: ${shlibs:Depends}, ${misc:Depends}, logrotate
|
||||||
Description: Satoshilabs packaged zcash server (configuration)
|
Description: Satoshilabs packaged zcash server
|
||||||
|
|||||||
@ -1 +1 @@
|
|||||||
/data/zec/zcash/zec.conf
|
/opt/zcash/zec/zec.conf
|
||||||
|
|||||||
@ -1 +1,2 @@
|
|||||||
zec.conf /data/zec/zcash
|
zcash/* /opt/zcash/zec
|
||||||
|
zec.conf /opt/zcash/zec
|
||||||
|
|||||||
@ -14,7 +14,7 @@ case "$1" in
|
|||||||
chown zcash:zcash /data/zec/zcash
|
chown zcash:zcash /data/zec/zcash
|
||||||
fi
|
fi
|
||||||
|
|
||||||
HOME=/data/zec/zcash /opt/satoshilabs/zcash/bin/zcash-fetch-params
|
HOME=/data/zec/zcash /opt/zcash/zec/bin/zcash-fetch-params
|
||||||
;;
|
;;
|
||||||
|
|
||||||
esac
|
esac
|
||||||
|
|||||||
@ -5,14 +5,15 @@
|
|||||||
# 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
|
||||||
# /data/zec/zcash/zcash.conf
|
# /opt/zcash/zec/zec.conf
|
||||||
|
|
||||||
[Unit]
|
[Unit]
|
||||||
Description=ZCash daemon (mainnet)
|
Description=ZCash daemon (mainnet)
|
||||||
After=network.target
|
After=network.target
|
||||||
|
|
||||||
[Service]
|
[Service]
|
||||||
ExecStart=/opt/satoshilabs/zcash/bin/zcashd -datadir=/data/zec/zcash -conf=/data/zec/zcash/zec.conf -pid=/run/zcashd/zec.pid
|
Environment="HOME=/data/zec/zcash"
|
||||||
|
ExecStart=/opt/zcash/zec/bin/zcashd -datadir=/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
|
||||||
@ -38,7 +39,7 @@ NoNewPrivileges=true
|
|||||||
PrivateDevices=true
|
PrivateDevices=true
|
||||||
|
|
||||||
# Deny the creation of writable and executable memory mappings.
|
# Deny the creation of writable and executable memory mappings.
|
||||||
MemoryDenyWriteExecute=true
|
# MemoryDenyWriteExecute=true
|
||||||
|
|
||||||
[Install]
|
[Install]
|
||||||
WantedBy=multi-user.target
|
WantedBy=multi-user.target
|
||||||
|
|||||||
@ -1 +0,0 @@
|
|||||||
zcash /opt/satoshilabs
|
|
||||||
@ -1,2 +0,0 @@
|
|||||||
/opt/satoshilabs/zcash/bin/zcashd /usr/bin/zcashd
|
|
||||||
/opt/satoshilabs/zcash/bin/zcash-cli /usr/bin/zcash-cli
|
|
||||||
Loading…
Reference in New Issue
Block a user