PDA

View Full Version : Background CB client in linux?



magnav0x
02-25-2004, 10:01 PM
Hey guys have you had any problems running the linux cb agent in the background? I try executing:

nohup ./cbspn &

And it terminates rather quickly.

Bok
02-25-2004, 10:38 PM
I run all of mine in background.

Don't bother with nohup, it's not really needed.

Bok

magnav0x
02-25-2004, 10:57 PM
I'm not sure why but even when I run it in the background without nohup the client doesn't seem to do any work:

./cbspn > cb1.log &

but if I run it normal in a terminal

./cbspn

it will actualy get work and do it. If I load it in the background it will show with 'ps' but it never grabs any work.

Bok
02-25-2004, 11:10 PM
Do they somehow get different nice levels ?

Perhaps put it to background and renice 15 ?

Bok

bwkaz
02-26-2004, 06:35 PM
./cbspn >cbspn.log 2>&1 &

Works fine for me. I do get work (due to the scheduling changes in kernel 2.6, the act of getting work noticeably slows down the rest of my system for a couple seconds)...

This is LFS 5.something (it was a CVS book build plus kernel 2.6 plus NPTL).

How are you measuring whether it gets work?

magnav0x
02-26-2004, 07:45 PM
bkwaz, I was using a peernod monitor to check that it was getting work. I also did a 'touch' on the file I was piping output to and it didn't say anything after the initial contact to the peernode.

bwkaz
02-27-2004, 06:19 PM
If you redirect stderr with stdout, do you get any errors in that file?

(Add 2>&1 to the command to do that.)

There shouldn't be any difference between backgrounded and not, but obviously there's something. If you run it backgrounded from a terminal, then keep the terminal open, do you get any work?