mynode/rootfs/standard/usr/bin/mynode_stop_critical_services.sh
2020-11-08 15:33:25 -06:00

26 lines
502 B
Bash
Executable File

#!/bin/bash
# Message
echo "Stopping myNode services..."
# Mark we are shutting down
touch /tmp/shutting_down
# Stop additional services
systemctl stop glances lndhub netdata rtl webssh2 whirlpool dojo
systemctl stop btcpayserver btc_rpc_explorer specter caravan lnbits
systemctl stop thunderhub mempoolspace
# Manually stop services (backup)
/opt/mynode/dojo/docker/my-dojo/dojo.sh stop || true
# Stop core services
systemctl stop electrs loopd lnd quicksync bitcoind
# Sync filesystem
sync