added rebooting, still need to add the buttons
This commit is contained in:
@@ -61,7 +61,10 @@ class BOSminer(BaseMiner):
|
||||
"""Sends command to turn off fault light on the miner."""
|
||||
await self.send_ssh_command('miner fault_light off')
|
||||
|
||||
async def restart_backend(self) -> None:
|
||||
async def restart_backend(self):
|
||||
await self.restart_bosminer()
|
||||
|
||||
async def restart_bosminer(self) -> None:
|
||||
"""Restart bosminer hashing process."""
|
||||
await self.send_ssh_command('/etc/init.d/bosminer restart')
|
||||
|
||||
|
||||
@@ -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']
|
||||
|
||||
Reference in New Issue
Block a user