Supervise ethminer daemon and restart process or machine when appropriate
Project description
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
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file ethminer_supervisor-1.1.0.tar.gz
.
File metadata
- Download URL: ethminer_supervisor-1.1.0.tar.gz
- Upload date:
- Size: 4.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 468be5b845122ce90c5b5540eedeb9d261d0a329c97b51cacbbf965a426ad631 |
|
MD5 | b72ac0d77d752d192dbe5161bab80e6e |
|
BLAKE2b-256 | b5e2cdb6f92d4c631311853b303cb969a7bbf0b6814c8d4d47e2e748193f9b35 |
File details
Details for the file ethminer_supervisor-1.1.0-py2.py3-none-any.whl
.
File metadata
- Download URL: ethminer_supervisor-1.1.0-py2.py3-none-any.whl
- Upload date:
- Size: 6.7 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4343e3af804429ee09b1513aa6248280ca661c4a447c972c0efc687d068282ed |
|
MD5 | b8278917372c8732ab79eea0419b5a7e |
|
BLAKE2b-256 | 1fd9798a401b7ef93f91f39f8cc37b0b1452b41dc892fc1fd81da189d518bae5 |