force debug.log by exec parameter from service

This commit is contained in:
rootzoll
2021-08-27 09:34:55 +02:00
parent 1c06b405ee
commit 7650c99398
7 changed files with 6 additions and 16 deletions

View File

@@ -141,16 +141,6 @@ sudo cp /home/admin/assets/tmux.conf.local /mnt/hdd/.tmux.conf.local >> ${logFil
sudo chown admin:admin /mnt/hdd/.tmux.conf.local >> ${logFile} 2>&1 sudo chown admin:admin /mnt/hdd/.tmux.conf.local >> ${logFile} 2>&1
sudo ln -s -f /mnt/hdd/.tmux.conf.local /home/admin/.tmux.conf.local >> ${logFile} 2>&1 sudo ln -s -f /mnt/hdd/.tmux.conf.local /home/admin/.tmux.conf.local >> ${logFile} 2>&1
# make sure that ./bitcoin/debug.log is switched on
debugFile=$(cat /mnt/hdd/${network}/${network}.conf | grep -c "debuglogfile=")
echo "debugFile(${debugFile})" >> ${logFile}
if [ "${debugFile}" == "0" ]; then
echo "# debug.log: Switching on" >> ${logFile}
echo "debuglogfile=/mnt/hdd/${network}/debug.log" >> /mnt/hdd/${network}/${network}.conf
else
echo "# debug.log: Is on" >> ${logFile}
fi
# backup LND dir (especially for macaroons and tlscerts) # backup LND dir (especially for macaroons and tlscerts)
# https://github.com/rootzoll/raspiblitz/issues/324 # https://github.com/rootzoll/raspiblitz/issues/324
echo "*** Make backup of LND directory" >> ${logFile} echo "*** Make backup of LND directory" >> ${logFile}

View File

@@ -1,4 +1,5 @@
# bitcoind configuration # bitcoind configuration
# some values might be overruled directly systemd-service exec call parameters
# mainnet/testnet # mainnet/testnet
testnet=0 testnet=0
@@ -10,7 +11,6 @@ txindex=0
disablewallet=1 disablewallet=1
peerbloomfilters=1 peerbloomfilters=1
datadir=/mnt/hdd/bitcoin datadir=/mnt/hdd/bitcoin
debuglogfile=/mnt/hdd/bitcoin/debug.log
# Connection settings # Connection settings
rpcuser=raspibolt rpcuser=raspibolt

View File

@@ -15,7 +15,7 @@ Group=bitcoin
Type=forking Type=forking
PIDFile=/mnt/hdd/bitcoin/bitcoind.pid PIDFile=/mnt/hdd/bitcoin/bitcoind.pid
ExecStartPre=-/home/admin/config.scripts/blitz.systemd.sh log blockchain STARTED ExecStartPre=-/home/admin/config.scripts/blitz.systemd.sh log blockchain STARTED
ExecStart=/usr/local/bin/bitcoind -daemon -conf=/mnt/hdd/bitcoin/bitcoin.conf -pid=/mnt/hdd/bitcoin/bitcoind.pid ExecStart=/usr/local/bin/bitcoind -daemon -conf=/mnt/hdd/bitcoin/bitcoin.conf -pid=/mnt/hdd/bitcoin/bitcoind.pid -debuglogfile=/mnt/hdd/bitcoin/debug.log
Restart=always Restart=always
TimeoutSec=120 TimeoutSec=120
RestartSec=30 RestartSec=30

View File

@@ -1,4 +1,5 @@
# litecoind configuration # litecoind configuration
# some values might be overruled directly systemd-service exec call parameters
# mainnet/testnet # mainnet/testnet
testnet=0 testnet=0
@@ -9,7 +10,6 @@ daemon=1
txindex=0 txindex=0
disablewallet=1 disablewallet=1
datadir=/mnt/hdd/litecoin datadir=/mnt/hdd/litecoin
debuglogfile=/mnt/hdd/litecoin/debug.log
# Connection settings # Connection settings
rpcuser=raspibolt rpcuser=raspibolt

View File

@@ -15,7 +15,7 @@ Group=bitcoin
Type=forking Type=forking
PIDFile=/home/bitcoin/.litecoin/litecoind.pid PIDFile=/home/bitcoin/.litecoin/litecoind.pid
ExecStartPre=-/home/admin/config.scripts/blitz.systemd.sh log blockchain STARTED ExecStartPre=-/home/admin/config.scripts/blitz.systemd.sh log blockchain STARTED
ExecStart=/usr/local/bin/litecoind -daemon -conf=/home/bitcoin/.litecoin/litecoin.conf -pid=/home/bitcoin/.litecoin/litecoind.pid ExecStart=/usr/local/bin/litecoind -daemon -conf=/home/bitcoin/.litecoin/litecoin.conf -pid=/home/bitcoin/.litecoin/litecoind.pid -debuglogfile=/mnt/hdd/litecoin/debug.log
Restart=always Restart=always
TimeoutSec=120 TimeoutSec=120
RestartSec=30 RestartSec=30

View File

@@ -1,4 +1,4 @@
# lnd configuration # lnd configuration - some values might be overruled directly systemd-service exec call parameters
[Application Options] [Application Options]
debuglevel=debug debuglevel=debug

View File

@@ -1,4 +1,4 @@
# lnd configuration # lnd configuration - some values might be overruled directly systemd-service exec call parameters
[Application Options] [Application Options]
debuglevel=debug debuglevel=debug