Browse Source

added debug output

#146
rootzoll 6 years ago
parent
commit
1200afdc06
  1. 2
      home.admin/_bootstrap.presync.sh
  2. 17
      home.admin/_bootstrap.sh

2
home.admin/_bootstrap.presync.sh

@ -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.

17
home.admin/_bootstrap.sh

@ -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

Loading…
Cancel
Save