First things first. I'm on Ubuntu 14.04 running a miner with 2x AMD 7950 GPU's.
My miner is running it's business in the garage, but my internet connection there is pretty unstable. It's connected via a PLC in the garage and 1 PLC in my apartment. Sometimes the connection drops completely, after which the PC reconnects again to the net. However, ethminer is unable to reconnect to the pool after 1 connection drop. To cut a long story short, it's the best I can do right now, as far as my connection is concerned.
I often check the miner stats at dwarfpool at work. If the connection is lost, there is nothing I can do to fix it (cause I'm at work). If a connection drop happens, I'm screwed.
I'm looking for a script to kill and restart the miner every three hours. If a connection drop happens in those 3 hours, it will fix itself due to the script. I believe it's perfectly possible with cron. It would looking something like this: Every 3 hours:
- Kill the ethminer process
- sleep for 5 seconds
- reinitialize the ethminer process
Can someone push me in the right direction to accomplish this? And also, won't this put much stress on the cards due to starting and stopping the entire time? Any other possible problems with my approach of this problem?
EDIT: clarification of the problem.
My miner is running it's business in the garage, but my internet connection there is pretty unstable. It's connected via a PLC in the garage and 1 PLC in my apartment. Sometimes the connection drops completely, after which the PC reconnects again to the net. However, ethminer is unable to reconnect to the pool after 1 connection drop. To cut a long story short, it's the best I can do right now, as far as my connection is concerned.
I often check the miner stats at dwarfpool at work. If the connection is lost, there is nothing I can do to fix it (cause I'm at work). If a connection drop happens, I'm screwed.
I'm looking for a script to kill and restart the miner every three hours. If a connection drop happens in those 3 hours, it will fix itself due to the script. I believe it's perfectly possible with cron. It would looking something like this: Every 3 hours:
- Kill the ethminer process
- sleep for 5 seconds
- reinitialize the ethminer process
Can someone push me in the right direction to accomplish this? And also, won't this put much stress on the cards due to starting and stopping the entire time? Any other possible problems with my approach of this problem?
EDIT: clarification of the problem.