added rebooting, still need to add the buttons

This commit is contained in:
UpstreamData
2022-01-08 19:49:12 -07:00
parent 93665772c3
commit e9210eb37d
5 changed files with 89 additions and 9 deletions

View File

@@ -97,6 +97,9 @@ class CGMiner(BaseMiner):
# else:
# print(cmd)
async def restart_backend(self) -> None:
await self.restart_cgminer()
async def restart_cgminer(self) -> None:
commands = ['cgminer-api restart',
'/usr/bin/cgminer-monitor >/dev/null 2>&1']