#!/bin/bash [[ $EUID == 0 ]] || exec sudo "${BASH_SOURCE[0]}" if [[ -e /tmp/no-bitcoinoff ]]; then exit 0 fi systemctl stop bitcoind