blob: eaeda24dad9370dbd14a745f4fdd13aa0de76577 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
#!/sbin/runscript
# Copyright 1999-2003 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/sci-biology/foldingathome/files/folding-init.d-r3,v 1.1 2004/12/23 18:37:10 ribosome Exp $
start() {
ebegin "Starting Folding@Home"
for (($CPU; CPU != 0; CPU--))
do
cd /opt/foldingathome/client${CPU}/
nice -n 20 su foldingathome -c "/opt/foldingathome/client${CPU}/foldingathome ${FOLD_OPTS}" &>/dev/null &
done
eend $?
}
stop() {
ebegin "Stopping Folding@Home"
for I in FahCore*.exe
do
killall -q $I >/dev/null
done
killall foldingathome >/dev/null
eend $?
}
|