diff options
Diffstat (limited to 'app-sci/foldingathome/files')
-rw-r--r-- | app-sci/foldingathome/files/digest-foldingathome-3.24-r1 | 2 | ||||
-rw-r--r-- | app-sci/foldingathome/files/folding-init.d-r1 | 29 | ||||
-rw-r--r-- | app-sci/foldingathome/files/folding.sh | 3 | ||||
-rw-r--r-- | app-sci/foldingathome/files/initfolding | 3 |
4 files changed, 37 insertions, 0 deletions
diff --git a/app-sci/foldingathome/files/digest-foldingathome-3.24-r1 b/app-sci/foldingathome/files/digest-foldingathome-3.24-r1 new file mode 100644 index 000000000000..72b9d2b96eed --- /dev/null +++ b/app-sci/foldingathome/files/digest-foldingathome-3.24-r1 @@ -0,0 +1,2 @@ +MD5 a3f27b7c6403e9a81e424bd2b7c935dd FAH3Console-v324-LinuxB.exe 245612 +MD5 df9c2a68e5a2b808daee0128d78ecde3 FAH3Console-v324-Linux.exe 613632 diff --git a/app-sci/foldingathome/files/folding-init.d-r1 b/app-sci/foldingathome/files/folding-init.d-r1 new file mode 100644 index 000000000000..698228137ac8 --- /dev/null +++ b/app-sci/foldingathome/files/folding-init.d-r1 @@ -0,0 +1,29 @@ +#!/sbin/runscript +# Copyright 1999-2003 Gentoo Technologies, Inc. +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/app-sci/foldingathome/files/folding-init.d-r1,v 1.1 2004/03/01 13:09:09 phosphan Exp $ + +start() { + ebegin "Starting Folding@home" + if [ ! -f /opt/foldingathome/client.cfg ]; then + eerror "Can't start without initial configuration." + eerror "For first run configuration, please run" + eerror "/opt/foldingathome/initfolding" + return 1 + fi + cd /opt/foldingathome + su foldingathome ./folding.sh + eend $? +} + +stop() { + ebegin "Stopping Folding@Home" + cd /opt/foldingathome + for I in FahCore*.exe + do + killall -q $I >/dev/null + done + killall foldingathome >/dev/null + eend $? +} + diff --git a/app-sci/foldingathome/files/folding.sh b/app-sci/foldingathome/files/folding.sh new file mode 100644 index 000000000000..9a206fcfb1d6 --- /dev/null +++ b/app-sci/foldingathome/files/folding.sh @@ -0,0 +1,3 @@ +#!/bin/bash +cd /opt/foldingathome +nice -n 20 ./foldingathome &>/opt/foldingathome/log & diff --git a/app-sci/foldingathome/files/initfolding b/app-sci/foldingathome/files/initfolding new file mode 100644 index 000000000000..90d17068e9d0 --- /dev/null +++ b/app-sci/foldingathome/files/initfolding @@ -0,0 +1,3 @@ +#!/bin/bash +cd /opt/foldingathome +su foldingathome -c "./foldingathome -config" |