diff options
author | Ian Stakenvicius <axs@gentoo.org> | 2013-04-16 17:24:11 +0000 |
---|---|---|
committer | Ian Stakenvicius <axs@gentoo.org> | 2013-04-16 17:24:11 +0000 |
commit | 676be411df10d8a6b09bc56cdc4214fc900f41b2 (patch) | |
tree | 366443ac142adfd65303ffa0f08edd8a91fbd9d0 /sci-biology/foldingathome | |
parent | Adding ~ppc keyword for dev-perl/PDL and his dependences, wrt bug #464970 (diff) | |
download | gentoo-2-676be411df10d8a6b09bc56cdc4214fc900f41b2.tar.gz gentoo-2-676be411df10d8a6b09bc56cdc4214fc900f41b2.tar.bz2 gentoo-2-676be411df10d8a6b09bc56cdc4214fc900f41b2.zip |
fixing the commit that partially failed
Diffstat (limited to 'sci-biology/foldingathome')
-rw-r--r-- | sci-biology/foldingathome/files/7.3/fah-init | 27 | ||||
-rw-r--r-- | sci-biology/foldingathome/files/7.3/folding-conf.d | 10 | ||||
-rw-r--r-- | sci-biology/foldingathome/files/7.3/initfolding | 5 |
3 files changed, 42 insertions, 0 deletions
diff --git a/sci-biology/foldingathome/files/7.3/fah-init b/sci-biology/foldingathome/files/7.3/fah-init new file mode 100644 index 000000000000..5de4bb783fc5 --- /dev/null +++ b/sci-biology/foldingathome/files/7.3/fah-init @@ -0,0 +1,27 @@ +#!/sbin/runscript +# Copyright 1999-2013 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $ + +extra_commands="unitinfo" + +unitinfo() { + einfo "$(head -n1 /opt/foldingathome/unitinfo.txt):" + sed -e '1,2d' /opt/foldingathome/unitinfo.txt +} + +start() { + ebegin "Starting Folding@Home" + cd /opt/foldingathome + start-stop-daemon --chdir ${PWD} --user foldingathome --nicelevel 19 \ + --make-pidfile --pidfile "${PIDFILE}" \ + --start --background --exec ./FAHClient -- ${FOLD_OPTS} + eend $? +} + +stop() { + ebegin "Stopping Folding@Home" + start-stop-daemon --stop --user foldingathome --pidfile "${PIDFILE}" + eend $? + killall --user foldingathome --signal SIGKILL +} diff --git a/sci-biology/foldingathome/files/7.3/folding-conf.d b/sci-biology/foldingathome/files/7.3/folding-conf.d new file mode 100644 index 000000000000..00be13b4c91f --- /dev/null +++ b/sci-biology/foldingathome/files/7.3/folding-conf.d @@ -0,0 +1,10 @@ +# Config file for /etc/init.d/foldingathome +# +# The f@h client configuration can be found in /opt/foldingathome/config.xml +# Run /opt/foldingathome/initfolding to reconfigure that. +# +# The options that may be passed to the Folding client can be obtained +# by running /opt/foldingathome/FAHClient --help +# +FOLD_OPTS="" +PIDFILE=/var/run/folding diff --git a/sci-biology/foldingathome/files/7.3/initfolding b/sci-biology/foldingathome/files/7.3/initfolding new file mode 100644 index 000000000000..240b7fa2f17b --- /dev/null +++ b/sci-biology/foldingathome/files/7.3/initfolding @@ -0,0 +1,5 @@ +#!/bin/sh + +cd /opt/foldingathome +/opt/foldingathome/FAHClient --configure +/bin/chown -R foldingathome:nogroup /opt/foldingathome |