2019-08-08 21:40:41 +03:00
|
|
|
#!/bin/bash
|
|
|
|
|
2019-08-11 16:58:07 +03:00
|
|
|
echo "${_GREEN}ENABLE CRONTAB STARTED${_RESET}"
|
|
|
|
|
2019-08-09 16:31:08 +03:00
|
|
|
# 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
|
|
|
|
|
2019-08-08 21:40:41 +03:00
|
|
|
# Get settings
|
|
|
|
. settings.sh
|
|
|
|
. functions.sh
|
|
|
|
sleep 5
|
|
|
|
|
|
|
|
# Setup crontab for user
|
|
|
|
. crontab.sh
|
|
|
|
sleep 5
|
|
|
|
|
2019-08-11 16:58:07 +03:00
|
|
|
echo "${_CYAN}ENABLE CRONTAB STOPPED${_RESET}"
|
2019-08-08 21:40:41 +03:00
|
|
|
|