xmrig-bash-scripts/start.sh

27 lines
406 B
Bash
Raw Normal View History

2019-08-10 18:27:01 +03:00
#!/bin/bash
# When this script is:
# * run by crontab, load the settings
# * run by install, do not load settings
2019-08-10 18:27:01 +03:00
# Reload settings and functions for when running standalone
2019-08-05 22:49:49 +03:00
. settings.sh
. functions.sh
2019-08-05 22:49:49 +03:00
if ! screen -list | grep -q "$_XMRIG_SCREEN"; then
2019-08-10 18:27:01 +03:00
# Call function
2019-08-05 22:49:49 +03:00
start_xmrig
# List screen
screen -ls
else
2019-08-05 22:49:49 +03:00
# List screen
screen -ls
2019-08-05 22:49:49 +03:00
fi
2019-08-10 18:27:01 +03:00
echo "MINING STARTED"