forked from transeos/ethos_monitor
-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathREADME
61 lines (41 loc) · 1.82 KB
/
README
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
In ethOS, we often run into a situation, where one or more gpus have crashed but mining continues without rebooting the system.
This script reboots the system if some gpu(s) crashes when ethOS is being used.
After 5 mins of boot, it starts checking for gpu crash using json api of ethosdistro.
If some gpu(s) doesn't work for 4 min, the system is restarted.
setup
=====
download: git clone https://github.com/transeos/ethos_monitor
update: git pull
Usage
=====
1st optional argument: rig name shown in ***.ethosdistro.com
Example: 2e15d2
2nd optional argument: json api in ethosdistro site
Example: "http://xyz.ethosdistro.com/?json=yes"
These two arguments are required if there is some issue in accessing some files in "/var/run/ethos".
Debugging optional argument: If it is set to "-debug", it dumps running gpu and total gpu number.
sample usage:
$ ./miner.py
or $ ./miner.py 2e15d2 "http://xyz.ethosdistro.com/?json=yes"
(if you want to dump debug info)
or $ ./miner.py -debug
or $ ./miner.py -debug 2e15d2 "http://xyz.ethosdistro.com/?json=yes" (required in case of access problem in "/var/run/ethos")
Cronjob setup
=============
Open cronjob using "crontab -e" command.
Add following line at the end -
@reboot /home/ethos/ethos_monitor/miner.py
or @reboot /home/ethos/ethos_monitor/miner.py 2e15d2 "http://xyz.ethosdistro.com/?json=yes"
Now, restart the system. The script will launch autometically at startup.
log file
========
/home/ethos/gpu_crash.log
If you have any query, please contact me.
Email: [email protected]
Donations
==================================
Bitcoin: 14BwKCzHYseFX6ae9S3ArVrvZC6A3h7QZx
Ethereum: 0x80ae5B86340d929da6D9868F1175061faE332f4C
Dash: XwXJ2t47zi9HPFxQzfAYxirqS7bcZ3r1Kf
Litecoin: LTek3HbMrgm2p4So69ST8MNPsWbU5vwVKE
Decred: DsWUVKcRhyy7DqhtBk2SoGHPXkffTv79HR8