diff options
author | Jeffrey Gardner <je_fro@gentoo.org> | 2008-08-03 03:19:59 +0000 |
---|---|---|
committer | Jeffrey Gardner <je_fro@gentoo.org> | 2008-08-03 03:19:59 +0000 |
commit | ffdf24f45fd1a8a9cbbbfc5c1ecb1d90f6dc6645 (patch) | |
tree | 38e2732b45678366e3d2a08c44e07bfb2193b5e8 /sci-biology/foldingathome/files | |
parent | Version bump. add ~x86 kw. Remove old. (diff) | |
download | historical-ffdf24f45fd1a8a9cbbbfc5c1ecb1d90f6dc6645.tar.gz historical-ffdf24f45fd1a8a9cbbbfc5c1ecb1d90f6dc6645.tar.bz2 historical-ffdf24f45fd1a8a9cbbbfc5c1ecb1d90f6dc6645.zip |
Latest, thanks to Nicolas Schlumberger, closing bug #233751
Package-Manager: portage-2.2_rc6/cvs/Linux 2.6.26-gentoo x86_64
Diffstat (limited to 'sci-biology/foldingathome/files')
-rw-r--r-- | sci-biology/foldingathome/files/6.02/fah-init | 36 | ||||
-rw-r--r-- | sci-biology/foldingathome/files/6.02/folding-conf.d | 21 | ||||
-rw-r--r-- | sci-biology/foldingathome/files/6.02/initfolding | 6 |
3 files changed, 63 insertions, 0 deletions
diff --git a/sci-biology/foldingathome/files/6.02/fah-init b/sci-biology/foldingathome/files/6.02/fah-init new file mode 100644 index 000000000000..c728c592a937 --- /dev/null +++ b/sci-biology/foldingathome/files/6.02/fah-init @@ -0,0 +1,36 @@ +#!/sbin/runscript +# Copyright 1999-2007 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $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 $ + +opts="${opts} unitinfo" + +unitinfo() { + einfo "$(head -n1 /opt/foldingathome/amd64-smp/unitinfo.txt):" + sed -e '1,2d' /opt/foldingathome/amd64-smp/unitinfo.txt +} + +start() { + ebegin "Starting Folding@Home" + cd /opt/foldingathome/amd64-smp + start-stop-daemon -v --chdir ${PWD} --chuid foldingathome --nicelevel 19 --start --background --exec ./fah6 -- ${FOLD_OPTS} + eend $? +} + +stop() { + ebegin "Stopping Folding@Home" + start-stop-daemon -vv --stop --user foldingathome --exec /opt/foldingathome/amd64-smp/fah6 + cd /opt/foldingathome/amd64-smp + for I in FahCore*.exe; do + if ps ax|grep $I > /dev/null 2>&1; then + killall -q $I > /dev/null 2>&1 + fi + done + sleep 1 + if ps ax|grep '[/]opt[/]foldingathome[/]amd64-smp[/]fah6' > /dev/null 2>&1; then + eend 1 + else + eend 0 + fi +} + diff --git a/sci-biology/foldingathome/files/6.02/folding-conf.d b/sci-biology/foldingathome/files/6.02/folding-conf.d new file mode 100644 index 000000000000..114cd144a96c --- /dev/null +++ b/sci-biology/foldingathome/files/6.02/folding-conf.d @@ -0,0 +1,21 @@ +# Config file for /etc/init.d/foldingathome +# +# The f@h client configuration can be found in /opt/foldingathome/client.cfg +# Run /opt/foldingathome/initfolding to reconfigure that. +# +# Enter options here to be passed to the Folding client: +# +# -oneunit Instruct the client to quit following the completion of one work unit. +# -verbosity x Sets the output level, from 1 to 9 (max). The default is 3 +# -forceasm Force core assembly optimizations to be used if available +# -advmethods Request to be assigned any new Cores or work units. +# -smp Set the client to run in SMP mode (multicore) +# +# A full listing of options can be found here: +# http://www.stanford.edu/group/pandegroup/folding/console-userguide.html +# But use of other options are not recommended when using the Folding client +# as a service. +# +FOLD_OPTS="-local" +PIDFILE=/var/run/folding + diff --git a/sci-biology/foldingathome/files/6.02/initfolding b/sci-biology/foldingathome/files/6.02/initfolding new file mode 100644 index 000000000000..e3bead5dde25 --- /dev/null +++ b/sci-biology/foldingathome/files/6.02/initfolding @@ -0,0 +1,6 @@ +#!/bin/sh + +cd /opt/foldingathome/amd64-smp +/opt/foldingathome/amd64-smp/fah6 -configonly +/bin/chown -R foldingathome:nogroup /opt/foldingathome/amd64-smp + |