You are not logged in.
Pages: 1
/etc/rc.d/foldingathome stop
:: Stopping Folding@Home [FAIL]
also fro mthe wiki, my client.cfg in my /opt/fah/user_name/ is empty. I seem to be failing at this.
Last edited by cirnOS (2010-05-26 04:36:14)
Offline
foldingathome should produce a log file.
Are you sure that "stopping" isn't just failing because it was never started in the first place?
Last edited by sand_man (2010-05-26 05:37:17)
Offline
I started it before, and then I try to stop it like the wiki says. This is what I get.
[root@myhost foldingathome]# /etc/rc.d/foldingathome start
:: Starting Folding@Home [DONE]
[root@myhost foldingathome]# nice: /opt/fah/fah6: No such file or directory
should I 'touch /opt/fag/fah6' ?
Last edited by cirnOS (2010-05-26 06:01:49)
Offline
Not sure what's happening there. What is the contents of /etc/rc.d/foldingathome and what is in the directory /opt/fah/
Offline
/etc/rc.d/foldingathome :
#!/bin/bash
#/etc/rc.d/foldingathome
#
# Starts the Folding@Home client in the background
. /etc/rc.conf
. /etc/rc.d/functions
. /etc/conf.d/foldingathome
PID=`pidof -o %PPID /opt/fah/fah6`
case "$1" in
start)
stat_busy "Starting Folding@Home"
if [ -z "$PID" ]; then
if [ ! -z "$FAH_USER" ] ; then
if [ ! -d "/opt/fah/$FAH_USER" ] ; then
mkdir /opt/fah/$FAH_USER
chown $FAH_USER /opt/fah/$FAH_USER
if [ ! -z "$FAH_GRP" ] ; then
chgrp $FAH_GRP /opt/fah/$FAH_USER
else
chgrp users /opt/fah/$FAH_USER
fi
fi
cd /opt/fah/$FAH_USER
su $FAH_USER -c "nice --adjustment 19 /opt/fah/fah6 -verbosity 9 > /opt/fah/$FAH_USER/myfah.log" &
else
cd /opt/fah
nice --adjustment 19 /opt/fah/fah6 -verbosity 9 > /opt/fah/myfah.log &
fi
fi
if [ ! -z "$PID" -o $? -gt 0 ]; then
stat_fail
else
add_daemon foldingathome
stat_done
fi
;;
stop)
stat_busy "Stopping Folding@Home"
[ ! -z "$PID" ]&& kill $PID &> /dev/null
if [ $? -gt 0 ]; then
stat_fail
else
rm_daemon foldingathome
stat_done
fi
;;
restart)
$0 stop
sleep 1
$0 start
;;
*)
echo $"Usage: $0 {start|stop|restart}"
esac
/opt/fah/:
[root@myhost ~]# cd /opt/fah/
[root@myhost fah]# ls
yuki
[root@myhost fah]# cd yuki/
[root@myhost yuki]# ls
client.cfg myfah.log
[root@myhost yuki]#
In case you ask what is in the client.cfg it was empty, but then I put this in.
[settings]
username=Disk
team=45032
asknet=no
machineid=1[http]
active=no
host=localhost
port=8080
Last edited by cirnOS (2010-05-26 06:37:33)
Offline
Pages: 1