mynode/rootfs/standard/usr/bin/mynode_stop_critical_services.sh

34 lines
586 B
Bash
Raw Normal View History

2019-12-19 03:45:44 +00:00
#!/bin/bash
2020-05-09 17:23:47 +00:00
# Message
echo "Stopping myNode services..."
2020-04-23 02:59:37 +00:00
# Mark we are shutting down
touch /tmp/shutting_down
2019-12-19 03:45:44 +00:00
# Stop additional services
systemctl stop glances
systemctl stop lndhub
systemctl stop netdata
systemctl stop rtl
systemctl stop webssh2
2019-12-26 05:11:29 +00:00
systemctl stop whirlpool
systemctl stop dojo
2020-01-15 04:42:48 +00:00
systemctl stop btcpayserver
2020-04-23 03:47:50 +00:00
systemctl stop btc_rpc_explorer
2019-12-19 03:45:44 +00:00
# Manually stop services (backup)
/opt/mynode/dojo/docker/my-dojo/dojo.sh stop || true
2019-12-19 03:45:44 +00:00
# Stop core services
systemctl stop electrs
2020-05-01 01:44:08 +00:00
systemctl stop loopd
2019-12-19 03:45:44 +00:00
systemctl stop lnd
systemctl stop quicksync
systemctl stop bitcoind
sync