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

21 lines
433 B
Bash
Executable File

#!/bin/bash
echo "${_GREEN}ENABLE CRONTAB STARTED${_RESET}"
# Defines a user crontab with schedules as defined in settings.sh
# Used in conjunction with crontab-off.sh to toggle user crontab between states:
# on - start/stop xmrig at specified times
# off - do not start/stop xmrig
# Get settings
. settings.sh
. functions.sh
sleep 5
# Setup crontab for user
. crontab.sh
sleep 5
echo "${_CYAN}ENABLE CRONTAB STOPPED${_RESET}"