xmrig-bash-scripts/crontab-off.sh

19 lines
416 B
Bash
Raw Normal View History

#!/bin/bash
2019-08-11 16:58:07 +03:00
echo "${_GREEN}DISABLE CRONTAB STARTED${_RESET}"
2019-08-09 16:31:08 +03:00
# Removes a user crontab
# Used in conjunction with crontab-on.sh to toggle user crontab between states:
# on - start/stop xmrig at specified times
# off - do not start/stop xmrig
# Remove existing crontab
echo "Backup existing crontab"
crontab -l > crontab
echo "Removing exiting crontab"
crontab -r
2019-08-11 16:58:07 +03:00
echo "${_CYAN}DISABLE CRONTAB STOPPED${_RESET}"