blob: f8d536eb33c2784a8a45670b743108a554e5331a (
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
26
|
#!/bin/sh
export TERM=linux
. /etc/rc.conf
. /etc/rc.d/functions
stat_runit "Starting folding@home"
FOLDING_DIR=/myth/folding_$(hostname)
if [ -d $FOLDING_DIR ] ; then
cd $FOLDING_DIR
# Ensure that the client configuration file has the same details as /etc/systemconfig
source /etc/systemconfig
if [ -n "$foldingusername" ] ; then
sed -i 's/username=.*$/username='$foldingusername'/g' $FOLDING_DIR/client.cfg
fi
if [ -n "$foldingworksize" ] ; then
sed -i 's/bigpackets=.*$/bigpackets='$foldingworksize'/g' $FOLDING_DIR/client.cfg
fi
# No need to direct output to a log file becase a log file
# will automatically be placed in $FOLDING_DIR
exec /usr/bin/fah6 -verbosity 9 &> /dev/null < /dev/null
fi
|