init systemd restart logs

This commit is contained in:
Christian Rotzoll
2019-04-23 16:22:42 +02:00
parent 5a43cb2b5d
commit f3a7cd0fc9

View File

@@ -64,6 +64,12 @@ if [ "${setupStep}" != "100" ]; then
fi
sudo chmod 777 ${infoFile}
# resetting start count files
echo "SYSTEMD RESTART LOG: blockchain (bitcoind/litecoind)" > /home/admin/blockchain.systemd.log
echo "SYSTEMD RESTART LOG: lightning (LND)" > /home/admin/lightning.systemd.log
sudo chmod 777 /home/admin/blockchain.systemd.log
sudo chmod 777 /home/admin/lightning.systemd.log
# Emergency cleaning logs when over 1GB (to prevent SD card filling up)
# see https://github.com/rootzoll/raspiblitz/issues/418#issuecomment-472180944
echo "*** Checking Log Size ***"