Gentoo Archives: gentoo-commits

From: "Jeffrey Gardner (je_fro)" <je_fro@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in sci-biology/foldingathome/files/6.02: fah-init initfolding folding-conf.d
Date: Sun, 03 Aug 2008 03:20:02
Message-Id: E1KPU8W-0006vw-9M@stork.gentoo.org
1 je_fro 08/08/03 03:20:00
2
3 Added: fah-init initfolding folding-conf.d
4 Log:
5 Latest, thanks to Nicolas Schlumberger, closing bug #233751
6 (Portage version: 2.2_rc6/cvs/Linux 2.6.26-gentoo x86_64)
7
8 Revision Changes Path
9 1.1 sci-biology/foldingathome/files/6.02/fah-init
10
11 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-biology/foldingathome/files/6.02/fah-init?rev=1.1&view=markup
12 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-biology/foldingathome/files/6.02/fah-init?rev=1.1&content-type=text/plain
13
14 Index: fah-init
15 ===================================================================
16 #!/sbin/runscript
17 # Copyright 1999-2007 Gentoo Foundation
18 # Distributed under the terms of the GNU General Public License v2
19 # $Header: /var/cvsroot/gentoo-x86/sci-biology/foldingathome/files/6.02/fah-init,v 1.1 2008/08/03 03:19:59 je_fro Exp $
20
21 opts="${opts} unitinfo"
22
23 unitinfo() {
24 einfo "$(head -n1 /opt/foldingathome/amd64-smp/unitinfo.txt):"
25 sed -e '1,2d' /opt/foldingathome/amd64-smp/unitinfo.txt
26 }
27
28 start() {
29 ebegin "Starting Folding@Home"
30 cd /opt/foldingathome/amd64-smp
31 start-stop-daemon -v --chdir ${PWD} --chuid foldingathome --nicelevel 19 --start --background --exec ./fah6 -- ${FOLD_OPTS}
32 eend $?
33 }
34
35 stop() {
36 ebegin "Stopping Folding@Home"
37 start-stop-daemon -vv --stop --user foldingathome --exec /opt/foldingathome/amd64-smp/fah6
38 cd /opt/foldingathome/amd64-smp
39 for I in FahCore*.exe; do
40 if ps ax|grep $I > /dev/null 2>&1; then
41 killall -q $I > /dev/null 2>&1
42 fi
43 done
44 sleep 1
45 if ps ax|grep '[/]opt[/]foldingathome[/]amd64-smp[/]fah6' > /dev/null 2>&1; then
46 eend 1
47 else
48 eend 0
49 fi
50 }
51
52
53
54
55 1.1 sci-biology/foldingathome/files/6.02/initfolding
56
57 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-biology/foldingathome/files/6.02/initfolding?rev=1.1&view=markup
58 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-biology/foldingathome/files/6.02/initfolding?rev=1.1&content-type=text/plain
59
60 Index: initfolding
61 ===================================================================
62 #!/bin/sh
63
64 cd /opt/foldingathome/amd64-smp
65 /opt/foldingathome/amd64-smp/fah6 -configonly
66 /bin/chown -R foldingathome:nogroup /opt/foldingathome/amd64-smp
67
68
69
70
71 1.1 sci-biology/foldingathome/files/6.02/folding-conf.d
72
73 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-biology/foldingathome/files/6.02/folding-conf.d?rev=1.1&view=markup
74 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-biology/foldingathome/files/6.02/folding-conf.d?rev=1.1&content-type=text/plain
75
76 Index: folding-conf.d
77 ===================================================================
78 # Config file for /etc/init.d/foldingathome
79 #
80 # The f@h client configuration can be found in /opt/foldingathome/client.cfg
81 # Run /opt/foldingathome/initfolding to reconfigure that.
82 #
83 # Enter options here to be passed to the Folding client:
84 #
85 # -oneunit Instruct the client to quit following the completion of one work unit.
86 # -verbosity x Sets the output level, from 1 to 9 (max). The default is 3
87 # -forceasm Force core assembly optimizations to be used if available
88 # -advmethods Request to be assigned any new Cores or work units.
89 # -smp Set the client to run in SMP mode (multicore)
90 #
91 # A full listing of options can be found here:
92 # http://www.stanford.edu/group/pandegroup/folding/console-userguide.html
93 # But use of other options are not recommended when using the Folding client
94 # as a service.
95 #
96 FOLD_OPTS="-local"
97 PIDFILE=/var/run/folding