added debug output

This commit is contained in:
rootzoll 2018-11-28 23:45:41 +01:00
parent 2e89504c9e
commit 1200afdc06
2 changed files with 7 additions and 12 deletions

View file

@ -1,5 +1,7 @@
#!/bin/bash
echo "presync: background script started" >> $logFile
# This script runs on every start calles by boostrap.service
# It makes sure that the system is configured like the
# default values or as in the config.

View file

@ -187,18 +187,11 @@ if [ ${hddIsAutoMounted} -eq 0 ]; then
# check if pre-sync was already activated on last power-on
#presyncActive=$(systemctl status bitcoind | grep -c 'could not be found')
#if [ ${presyncActive} -eq 1]; then
echo "starting pre-sync in background" >> $logFile
# starting in background, because this scripts is part of systemd
# so to change systemd needs to happen after delay in seperate process
/home/admin/_bootstrap.presync.sh &
#else
# echo "pre-sync is already active" >> $logFile
# # update info file
# echo "state=presync" > $infoFile
# echo "message='pre-sync active'" >> $infoFile
# echo "device=${hddDeviceName}" >> $infoFile
#fi
echo "starting pre-sync in background" >> $logFile
# starting in background, because this scripts is part of systemd
# so to change systemd needs to happen after delay in seperate process
/home/admin/_bootstrap.presync.sh &
echo "done" >> $logFile
# after admin login, presync will be stoped and HDD unmounted
exit 1