getminera / minera

Minera is a web interface to monitor and manage mining devices
http://getminera.com
Other
373 stars 156 forks source link

rc.local #8

Closed chrisf4lc0n closed 10 years ago

chrisf4lc0n commented 10 years ago

Any chance the rc.local does not get replaced as some run other services on startup. Every time I save settings my rc.local get overwritten, when I run 2 other startup scripts there and need to add them every time I make changes. I personally need to add sleep 10 before minerd starts, as if I do not Grids only start at 200khs each! When I delay the start just by 10 seconds they run at full speed. Thanks Chris.

michelem09 commented 10 years ago

Yes, next releases will adopt a completely new system to bring up and down the minerd process, no more needs to write rc.local and a more reliable and efficient start/stop engine. Stay tuned.

chrisf4lc0n commented 10 years ago

True a startup script with start/stop/restart in init.d would be much better idea, leaving the rc.local for scripts which just need to start and do not need any extra control over them. Thanks Chris.

michelem09 commented 10 years ago

Hello, I just pushed a fix for this, I added a "sleep 5" for everybody in rc.local. Please try if it's enough or tell me, I could give you the ability to set your own delay-time.

chrisf4lc0n commented 10 years ago

When I run the cpuminer without the minera 5 seconds sleep was not enough... The cpumiiner still started at well throttled speed. I have tested everything between 5-10 and 10 seconds was optimal, cpumiiner got up at 100% hash everytime. Different Raspberry Pis could be different thoough. Thanks a lot Chris.

michelem09 commented 10 years ago

Hi Chris, I just put a workaround for this letting choose the preferred delay seconds in the Minera settings. Wait for next commit/push.

chrisf4lc0n commented 10 years ago

That is great... What could also be added is the ability of putting some other stuff into rc.local from the webgui level, similar to extra options for minerd. Chris.

michelem09 commented 10 years ago

0.1.10 extra commands to rc.local added Feel free to reopen if needed

chrisf4lc0n commented 10 years ago

That looks great mate, thanks a ton. Great job! Chris.