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_beta1: fah-init initfolding folding-conf.d
Date: Sat, 14 Jun 2008 22:16:09
Message-Id: E1K7e2V-0003Ab-I4@stork.gentoo.org
1 je_fro 08/06/14 22:16:03
2
3 Added: fah-init initfolding folding-conf.d
4 Log:
5 Latest x86_64 beta client
6 (Portage version: 2.1.5.5)
7
8 Revision Changes Path
9 1.1 sci-biology/foldingathome/files/6.02_beta1/fah-init
10
11 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-biology/foldingathome/files/6.02_beta1/fah-init?rev=1.1&view=markup
12 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-biology/foldingathome/files/6.02_beta1/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_beta1/fah-init,v 1.1 2008/06/14 22:16:03 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_beta1/initfolding
56
57 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-biology/foldingathome/files/6.02_beta1/initfolding?rev=1.1&view=markup
58 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-biology/foldingathome/files/6.02_beta1/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_beta1/folding-conf.d
72
73 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-biology/foldingathome/files/6.02_beta1/folding-conf.d?rev=1.1&view=markup
74 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-biology/foldingathome/files/6.02_beta1/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 #
90 # A full listing of options can be found here:
91 # http://www.stanford.edu/group/pandegroup/folding/console-userguide.html
92 # But use of other options are not recommended when using the Folding client
93 # as a service.
94 #
95 FOLD_OPTS="-local"
96 PIDFILE=/var/run/folding
97
98
99
100
101 --
102 gentoo-commits@l.g.o mailing list