git.iko.soy/xmrig-bash-scripts
on master help sign in
Annotate cron on and off for clarity
ba79446Sean Wheller
crontab-off.sh+5
@@ -1,5 +1,10 @@
1#!/bin/bash
1#!/bin/bash
2
2
3+# Removes a user crontab
4+# Used in conjunction with crontab-on.sh to toggle user crontab between states:
5+# on - start/stop xmrig at specified times
6+# off - do not start/stop xmrig
7+
3echo "#################################"
8echo "#################################"
4echo "# DISABLING CRONTAB #"
9echo "# DISABLING CRONTAB #"
5echo "#################################"
10echo "#################################"
crontab-on.sh+5
@@ -1,5 +1,10 @@
1#!/bin/bash
1#!/bin/bash
2
2
3+# Defines a user crontab with schedules as defined in settings.sh
4+# Used in conjunction with crontab-off.sh to toggle user crontab between states:
5+# on - start/stop xmrig at specified times
6+# off - do not start/stop xmrig
7+
3echo "####################################"
8echo "####################################"
4echo "# ENABLING CRONTAB #"
9echo "# ENABLING CRONTAB #"
5echo "####################################"
10echo "####################################"