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

19 lines
416 B
Bash
Executable File

#!/bin/bash
echo "${_GREEN}DISABLE CRONTAB STARTED${_RESET}"
# 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
echo "${_CYAN}DISABLE CRONTAB STOPPED${_RESET}"