Supervise ethminer daemon and restart process or machine when appropriate.
This assumes ethminer was set up using ansible-ethminer, where systemd manages the ethminer.service process. This is required, since this is based on parsing logs from sytemd.
Features
Restart process when process gets stuck
Restart machine when graphics driver fails (WIP, currently I restart nightly)
Usage
Install ethminer supervisor with:
pip install ethminer-supervisor
Then hook up either supervisor or systemd
CLI
The command line interface may be used to run manually:
ethminer_supervisor
You can restart the service if only old times were found by passing –restart:
ethminer_supervisor --restart
–delta (default 180) can be used to override the default ‘old’ time in seconds before action is taken to recover the service:
ethminer_supervisor --restart --delta 60
License
See LICENSE file for further licensing information
Release files for ethminer_supervisor 1.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| ethminer_supervisor-1.1.0.tar.gz | 4.5 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| ethminer_supervisor-1.1.0-py2.py3-none-any.whl | Python 3, Python 2 | none | any | Details |
Total release size: 11.2 kB
Release files / ethminer_supervisor-1.1.0.tar.gz
| Download URL | ethminer_supervisor-1.1.0.tar.gz |
|---|---|
| Size | 4.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
468be5b845122ce90c5b5540eedeb9d261d0a329c97b51cacbbf965a426ad631
|
|
BLAKE2b-256 checksum How to use checksums |
b5e2cdb6f92d4c631311853b303cb969a7bbf0b6814c8d4d47e2e748193f9b35
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Release files / ethminer_supervisor-1.1.0-py2.py3-none-any.whl
| Download URL | ethminer_supervisor-1.1.0-py2.py3-none-any.whl |
|---|---|
| Size | 6.7 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
4343e3af804429ee09b1513aa6248280ca661c4a447c972c0efc687d068282ed
|
|
BLAKE2b-256 checksum How to use checksums |
1fd9798a401b7ef93f91f39f8cc37b0b1452b41dc892fc1fd81da189d518bae5
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |