-
Notifications
You must be signed in to change notification settings - Fork 15
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add custom commands to start / stop / restart mining process #22
Comments
restart will not be used but the custom command for start/stop is a nice idea. So you have to configure it at all rpc client's, per default normal kill will be used, if something does not work as it should the user can remove the config and use kill again. |
Yes, I suppose, putting it in rpc client's config is a nice idea. Also, there's strange behavior of cgminer both with "mine stop" and phpminer's "stop rig" button. When I connect to the screen that runs cgminer, press "q", fan settings (and probably memory/engine clock come back to normal). |
The phpminer stop button does nothing else as "kill -9 process_id_of_miner_software" so the software is just killed. Normally the software should handle such kill commands, developer can catch those events and do things on that. for example reset the clock speed. I think mine stop also kills it, but a bit nicer than phpminer. By pressing Q button within the interface the miner software first reset all the values and then quits. That's the difference. |
Just tried SIGTERM instead of SIGKILL (15 instad of 9) and it worked just if I shut cgminer manually, it's just it might not work when cgminer is hung. |
This would also help with a problem I have - either command available just hangs my rigs. The only restart I've ever had work is: Coldreboot -f And there's usually a few syncs before it too. |
Please verify if it works for you. |
Confirmed working here, the following works very well for me for reboot on hard hung miner processes:
|
ok so closed |
Motivation: better integration with BAMT, which uses /etc/init.d/ for mining initiation:
mine start
mine stop
mine restart
The text was updated successfully, but these errors were encountered: