xmrig-bash-scripts/stop.sh

23 lines
381 B
Bash
Raw Permalink Normal View History

#!/bin/bash
# When this script is:
# * run by crontab, load the settings
# * run by install, do not load settings
2019-08-11 16:58:07 +03:00
echo "${_GREEN}END MINING STARTED${_RESET}"
if [ -z "$_XMRIG_SCREEN" ]; then
# Load settings when run by crontab
. settings.sh
2019-07-30 16:03:02 +03:00
. functions.sh
# Call function
stop_xmrig
else
# Call function
stop_xmrig
fi
2019-08-11 16:58:07 +03:00
echo "${_CYAN}END MINING STOPPED${_RESET}"