sudo nice -n19 primecoind --daemon
Still not working for me.
Does nice use PATH lookup? I would have expected it would be up to you to tell it explicitly what to run.
Thus, for example, if primecoind is in the current directory, you'd normally do ./primecoind since path lookup does not normally look in current directory, but, using nice, I would think nice is looking in the current directory for primecoin since you didn't tell it for example to run /usr/local/bin/primecoind.
So make sure primecoind is where you are telling nice that it is...
primestart.sh
#!/bin/bash
PRIMECOIND=/usr/local/bin/primecoind
DATADIR=$HOME/.primecoin
nice ${PRIMECOIND} -datadir=$DATADIR -rescan -maxconnections=8 \
-rpcuser=primeuser -rpcpassword=TopSecretPasswordForRPC \
-gen=1 -daemon -rpcport=9912
Also, is 19 niceness really necessary? Doesn't the normal plain old nice, which defaults to niceness of 10, suffice? Are you sure you want CPU mining to have the lowest priority of all, behind all normal nice'd processes? It defaults to 10 to leave room for ridiculously low priority things to be given more niceness and to leave room for some things to be nice but not as nice as normal/default nicenss of 10...
Also, why the fuck do you run a coin daemon as root? Isn't it bad enough not running it as a user specially created for that coin so it has no access to other users stuff, without going and giving it root access to your machine, even IF you put it in a virtual machine all to itself? (aka WFT is sudo in there for?!?!?!)
-MarkM-
Easy there now, calm down. I'm only just starting out on linux.
I was suggested by someone else to do "nice -n19" by someone else. I'm trying to give it a lower priority since it's dropping my GPU mining hash rate from 700khps to 500khps. I was told to use "nice" command instead of setgenerate true 7.
The normal steps I learned to do get primecoin going is:
git clone https://github.com/mikaelh2/primecoin
cd primecoin/src
make -f makefile.unix
mv primecoind /usr/local/bin
cd /usr/local/bin
primecoind --daemon
watch 'primecoind getmininginfo'
If I tried to do just "primecoind setgenerate true -1" instead of "primecoind --daemon", it says something about couldn't connect to server.
Now I'm trying to understand how to use the nice command. Someone said to use it when I first start primecoind but that didn't do anything.
The sudo is there because when I tried just "nice primecoind --daemon", it gave me a permission error."