blob: f489d1eb2a4d1619998658e5353486144dd81ea5 (
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/app-sci/foldingathome/files/folding-init.d-r3,v 1.2 2004/07/09 21:42:18 mr_bones_ 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 $?
}
|