xmrig-bash-scripts/crontab-off.sh
2019-08-09 15:31:08 +02:00

24 lines
566 B
Bash
Executable File

#!/bin/bash
# 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
echo "#################################"
echo "# DISABLING CRONTAB #"
echo "#################################"
# Remove existing crontab
echo "Backup existing crontab"
crontab -l > crontab
echo "Removing exiting crontab"
crontab -r
echo "#################################"
echo "# CRONTAB DISABLED #"
echo "#################################"