Browse Source

#287 stopping bitcoind softly

dev
rootzoll 6 years ago
parent
commit
77165b9464
  1. 19
      home.admin/00mainMenu.sh
  2. 4
      home.admin/00settingsMenuServices.sh
  3. 1
      home.admin/95finalSetup.sh
  4. 3
      home.admin/config.scripts/network.reindex.sh

19
home.admin/00mainMenu.sh

@ -413,14 +413,21 @@ case $CHOICE in
;;
NAME)
sudo /home/admin/config.scripts/lnd.setname.sh
echo "Press ENTER to Reboot."
read key
sudo shutdown -r now
noreboot=$?
if [ "${noreboot}" = "0" ]; then
sudo -u bitcoin ${network}-cli stop
echo "Press ENTER to Reboot."
read key
sudo shutdown -r now
else
./00mainMenu.sh
fi
;;
PASSWORD)
sudo /home/admin/config.scripts/blitz.setpassword.sh
noreboot=$?
if [ "${noreboot}" = "0" ]; then
sudo -u bitcoin ${network}-cli stop
echo "Press ENTER to Reboot .."
read key
sudo shutdown -r now
@ -437,10 +444,10 @@ case $CHOICE in
echo "-----------------------------------------------"
echo "stop lnd - please wait .."
sudo systemctl stop lnd
echo "stop bitcoind (1) - please wait .."
sudo -u bitcoin bitcoin-cli stop
echo "stop ${network}d (1) - please wait .."
sudo -u bitcoin ${network}-cli stop
sleep 10
echo "stop bitcoind (2) - please wait .."
echo "stop ${network}d (2) - please wait .."
sudo systemctl stop ${network}d
echo "starting shutdown"
sudo shutdown now

4
home.admin/00settingsMenuServices.sh

@ -201,6 +201,8 @@ if [ ${needsReboot} -eq 1 ]; then
dialog --pause "OK. System will reboot to activate changes." 8 58 8
clear
echo "rebooting .. (please wait)"
sleep 3
# stop bitcoind
sudo -u bitcoin ${network}-cli stop
sleep 4
sudo shutdown -r now
fi

1
home.admin/95finalSetup.sh

@ -44,6 +44,7 @@ sudo sed -i "s/^setupStep=.*/setupStep=100/g" /home/admin/raspiblitz.info
clear
echo "Setup done. Rebooting now."
sudo -u bitcoin ${network}-cli stop
sleep 3
sudo shutdown -r now

3
home.admin/config.scripts/network.reindex.sh

@ -78,6 +78,9 @@ echo "*************************"
echo "Re-Index finished"
echo "Starting reboot ..."
echo "*************************"
# stop bitcoind
sudo -u bitcoin ${network}-cli stop
sleep 4
# clean logs (to prevent a false reindex detection)
sudo rm /mnt/hdd/${network}/debug.log
# reboot

Loading…
Cancel
Save