A couple of days or so ago, I merged some pull requests that had been sitting around a while. I also included a PHP script that uses the cgminer API to switch pools. Others have posted about using just one cgminer.conf with every pool and issuing a switchpool call. My script takes a pool URL, miner name, and password, adds them to the current list of pools, and (optionally) removes all of the other pools. In your pool-switching shell script, you then call my script once for each pool you want to use for a coin, with the "clear" parameter included on the first call. This allows you to have multiple pools configured for a coin as a backup.
Thanks for the script, much appreciated.
At the moment the regular setup is working, but I would like to make sure cgminer doesn't need to restart when switching pools by using the above method, but unfortunately I don't understand what exactly needs to be done.
I am guessing that the PHP script is
https://github.com/area/CryptoSwitcher/blob/master/switchpool.php but I still don't understand what exactly needs to be done.
- Where to specify all pool urls's and miner name/password?
- How to call this script with "clear" parameter included on the first call in the pool-switching shell script?
- I am guessing that I have to remove line 4 and 5 from pool-switching shell script
https://github.com/area/CryptoSwitcher/blob/master/litecoin.sh.sample in order to make sure cgminer isn't restarted every time. Is that correct?
Any help is appreciated, thanks.