I've been trying to run cgminer with remoting into my Raspberry Pi via ssh.
I tried no use nohup to avoid for cgminer to receive a SIGHUP when I leave ssh, but whenever the input is redirected nodev/null (what nohup does), cgminer maxes out the CPU usage. Bad thing on the RPi.
How can I get around this?
Add to cgminer:
... --api-listen --api-allow W:127.0.0.1,192.168.0/24 ...
(of course you'll have to correct 192.168.0 to match your network)
Then to exit cgminer:
echo -n quit | nc 127.0.0.1 4028 ; echo
OR, if you don't have nc (or ncat) then you can use:
java API quit
if you have API.class in the current directory
i.e. see if a clean exit resolves it
Also, killing screen after 1 second is often before cgminer completes exiting
(since it has to wait on a bunch of threads and then exit with the summary)
... just get the screen to exit when cgminer exits
Edit: OK that reply is a mix of comments to the previous posts ... but the point is yes use screen ... and also a clean exit