blob: e7ccdc2d7f7215d2a34cb7610532c397f9751334 (
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
|
#!/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,v 1.1 2004/12/23 18:37:10 ribosome Exp $
start() {
ebegin "Starting Folding@home"
cd /opt/foldingathome
nice -n 19 ./foldingathome >&/dev/null&
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 $?
}
|