From 676be411df10d8a6b09bc56cdc4214fc900f41b2 Mon Sep 17 00:00:00 2001 From: Ian Stakenvicius Date: Tue, 16 Apr 2013 17:24:11 +0000 Subject: fixing the commit that partially failed --- sci-biology/foldingathome/files/7.3/fah-init | 27 ++++++++++++++++++++++ sci-biology/foldingathome/files/7.3/folding-conf.d | 10 ++++++++ sci-biology/foldingathome/files/7.3/initfolding | 5 ++++ 3 files changed, 42 insertions(+) create mode 100644 sci-biology/foldingathome/files/7.3/fah-init create mode 100644 sci-biology/foldingathome/files/7.3/folding-conf.d create mode 100644 sci-biology/foldingathome/files/7.3/initfolding (limited to 'sci-biology/foldingathome') 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 -- cgit v1.2.3-65-gdbad