want to join folding team

Reel

Diamond Member
Jul 14, 2001
4,484
0
76
Hi , I am interested in joining your folding team because I have been leaving my computers on always and it is silly to let the CPU idle. I have a few questions though that I hope someone can answer for me.

1) How can I make the windows client run as a service so its always going at a low priority in XP?

2) How can I do similar with Linux so that it runs at startup in the background?

3) How do I join the team?

Thanks,
Larry
 

mgpaulus

Golden Member
Dec 19, 2000
1,112
0
0
Originally posted by: ReelC00L
Hi , I am interested in joining your folding team because I have been leaving my computers on always and it is silly to let the CPU idle. I have a few questions though that I hope someone can answer for me.

here's a Getting start with Folding@Home thread.

1) How can I make the windows client run as a service so its always going at a low priority in XP?
I don't know if you can make the windows client do that, but you can easily do that with the console client. Go to Stanford software page and grab the FAHConsole program for windows. Install it, and run it one time with a -config flag. create a user name and enter '198' for the team. Once it has downloaded a WU and the appropriate core file, then CTRL-C the process. Now, select Start->Settings->ControlPanel->Scheduled Tasks->Add Scheduled Task. Fill in the appropriate information for where the client is located. Put in an appropriate userid/password.
On the second tab, select "At system startup". And on the third tab, make sure you DESELECT the "Stop the task if it runs more than xx hours and yy minutes".

2) How can I do similar with Linux so that it runs at startup in the background?
You can put an entry in /etc/inittab, or create an appropriate /etc/rcx.d/S95folding file that will autostart the folding@home client

3) How do I join the team?
Make sure you use a teamid of 198.

Thanks,
Larry


 

Reel

Diamond Member
Jul 14, 2001
4,484
0
76
ok i got the windows all set up as a service from your getting started link. Linux, i made my friend do it since he is better at the nitty gritty than I am. He put it in my rc.d scripts but the problem is shutting it down. He says that sending a friendly kill comand terminates it but when it tries to start back up again it can't find its place or something and just deadlocks. Granted, this computer is shutdown at most every few months so its not that imminent, but it would be nice to have it all set up properly. Thanks for your help.
 

mgpaulus

Golden Member
Dec 19, 2000
1,112
0
0
Here's the contents of my folding start/stop script:
I run debian, so this file goes in /etc/init.d/foldingathome
I then have links to
/etc/rc0.d/K09foldingathome
/etc/rc1.d/K09foldingathome
/etc/rc2.d/S91foldingathome
/etc/rc3.d/S91foldingathome
/etc/rc4.d/S91foldingathome
/etc/rc5.d/S91foldingathome
/etc/rc6.d/K09foldingathome

to manually start/stop the processes, I run /etc/init.d/foldingathome with either a 'stop' or 'start' parm.

One thing to note though, is that the FAH3Console seems to take a while to clean up and shut down. Usually
what I do is:

/etc/init.d/foldingathome stop
top

then I watch the process list until I see all the FAH3Console & FAH3Cores die, then I can do whatever I need to do
and then I can do a

/etc/init.d/foldingathome start


start/stop script starts here
-------------------------------------------------------------------------------------------

#!/bin/sh
# Start/stop the foldingathome process

test -f /foldingathome/FAH3Console.exe || exit 0

case "$1" in
start) echo -n "Starting foldingathome"
cd /foldingathome
exec nice -19 ./FAH3Console.exe >/dev/null 2>&1 &
echo "."
;;
stop) echo -n "Stopping foldingathome"
cd /foldingathome
for i in `ps --no-heading -ef | egrep "FAH3|FahCore" | egrep -v egrep | cut -c9-14`
do
kill $i
done
echo "."
;;
*) echo "Usage: /etc/init.d/foldingathome start|stop"; exit 1
;;
esac
exit 0
 

m0ti

Senior member
Jul 6, 2001
975
0
0
if you're interested in Distributed Folding and not Folding@home, it also installs as a service on windows, and they have startup scripts for linux under the About->Stuff link on their webpage