xmrig-bash-scripts/stop.sh
2019-08-11 15:58:07 +02:00

23 lines
381 B
Bash
Executable File

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