mirror of
https://github.com/seanwhe/xmrig-bash-scripts.git
synced 2024-11-24 14:13:33 +03:00
24 lines
566 B
Bash
Executable File
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 "#################################"
|
|
|