1 diff -Naur blank/fah.conf.d 6.02-1/fah.conf.d
2 --- blank/fah.conf.d 1969-12-31 16:00:00.000000000 -0800
3 +++ 6.02-1/fah.conf.d 2008-08-21 16:59:05.000000000 -0700
6 +# Optional user settings for foldingathome daemon
8 +# If you prefer not to run fah as root then you can identifer a current or
9 +# specially created user here.
13 +# If you wish to associate this user with a specific group you can enter the
14 +# group name here. If left blank the default is "users".
17 diff -Naur blank/fah.license 6.02-1/fah.license
18 --- blank/fah.license 1969-12-31 16:00:00.000000000 -0800
19 +++ 6.02-1/fah.license 2008-08-21 16:59:27.000000000 -0700
21 +Folding@Home distributed computing client
22 +Copyright 2001-2007. Stanford University. All Rights Reserved.
26 +Please carefully read the following terms and conditions before using this software. Use of this software
27 +indicates acceptance of this license agreement and disclaimer of all warranties.
29 +Disclaimer of Warranty:
31 +IN NO EVENT SHALL STANFORD UNIVERSITY BE LIABLE TO ANY PARTY FOR DIRECT, INDIRECT, SPECIAL, INCIDENTAL,
32 +OR CONSEQUENTIAL DAMAGES, INCLUDING LOST PROFITS, ARISING OUT OF THE USE OF THIS SOFTWARE AND ITS
33 +DOCUMENTATION, EVEN IF STANFORD UNIVERSITY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
34 +STANFORD UNIVERSITY SPECIFICALLY DISCLAIMS ANY WARRANTIES, INCLUDING, BUT NOTLIMITED TO, THE IMPLIED
35 +WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE SOFTWARE AND ACCOMPANYING
36 +DOCUMENTATION PROVIDED HEREUNDER IS PROVIDED "AS IS". Folding@home HAS NO OBLIGATION TO PROVIDE
37 +MAINTENANCE, SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
41 +You may use this software on a computer system only if you own the system or have the permission of the owner.
42 +You may not alter the software or associated data files.
43 +You may only use unmodified versions of Folding@home obtained through authorized distributors to connect
44 +to the Folding@Home servers. Use of other software to connect to the Folding@home servers is strictly prohibited.
45 +Distribution of this software is prohibited. It may only be obtained by downloading from Stanford's web site
46 +(http://folding.stanford.edu and pages linked therein) or the web site of one of our commercial partners (Sony, NVIDIA, and ATI).
47 diff -Naur blank/fah.rc.d 6.02-1/fah.rc.d
48 --- blank/fah.rc.d 1969-12-31 16:00:00.000000000 -0800
49 +++ 6.02-1/fah.rc.d 2008-08-21 17:00:48.000000000 -0700
54 +# Starts the Folding@Home client in the background
57 +. /etc/rc.d/functions
60 +PID=`pidof -o %PPID /opt/fah/fah6`
63 + stat_busy "Starting Folding@Home"
64 + if [ -z "$PID" ]; then
65 + if [ ! -z "$FAH_USER" ] ; then
66 + if [ ! -d "/opt/fah/$FAH_USER" ] ; then
67 + mkdir /opt/fah/$FAH_USER
68 + chown $FAH_USER /opt/fah/$FAH_USER
69 + if [ ! -z "$FAH_GRP" ] ; then
70 + chgrp $FAH_GRP /opt/fah/$FAH_USER
72 + chgrp users /opt/fah/$FAH_USER
74 + touch /opt/fah/$FAH_USER/client.cfg
76 + cat /opt/fah/client.cfg > /opt/fah/$FAH_USER/client.cfg
77 + cd /opt/fah/$FAH_USER
78 + su $FAH_USER -c "nice --adjustment 19 /opt/fah/fah6 -verbosity 9 > /opt/fah/$FAH_USER/myfah.log" &
81 + nice --adjustment 19 /opt/fah/fah6 -verbosity 9 > /opt/fah/myfah.log &
84 + if [ ! -z "$PID" -o $? -gt 0 ]; then
93 + stat_busy "Stopping Folding@Home"
94 + [ ! -z "$PID" ]&& kill $PID &> /dev/null
95 + if [ $? -gt 0 ]; then
110 + echo $"Usage: $0 {start|stop|restart}"