mirror of
https://github.com/seanwhe/xmrig-bash-scripts.git
synced 2024-11-24 06:07:34 +03:00
19 lines
416 B
Bash
Executable File
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}"
|
|
|