summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeffrey Gardner <je_fro@gentoo.org>2010-11-08 04:25:20 +0000
committerJeffrey Gardner <je_fro@gentoo.org>2010-11-08 04:25:20 +0000
commita4a90b26b609046f3ecf5ae20b30bec7e35eb169 (patch)
treebba80122dcb27022c9bfc4db7e565490b8e1abef /sci-biology
parentFix to use distdir (diff)
downloadje_fro-a4a90b26b609046f3ecf5ae20b30bec7e35eb169.tar.gz
je_fro-a4a90b26b609046f3ecf5ae20b30bec7e35eb169.tar.bz2
je_fro-a4a90b26b609046f3ecf5ae20b30bec7e35eb169.zip
fix init script to stop properly
svn path=/; revision=302
Diffstat (limited to 'sci-biology')
-rw-r--r--sci-biology/foldingathome/files/999/fah-init8
1 files changed, 7 insertions, 1 deletions
diff --git a/sci-biology/foldingathome/files/999/fah-init b/sci-biology/foldingathome/files/999/fah-init
index 6f55454..458fc7b 100644
--- a/sci-biology/foldingathome/files/999/fah-init
+++ b/sci-biology/foldingathome/files/999/fah-init
@@ -5,6 +5,13 @@
opts="${opts} unitinfo"
+depend() {
+
+ after bootmisc
+ need localmount
+ need net
+}
+
unitinfo() {
einfo "$(head -n1 /opt/foldingathome/unitinfo.txt):"
sed -e '1,2d' /opt/foldingathome/unitinfo.txt
@@ -23,5 +30,4 @@ stop() {
ebegin "Stopping Folding@Home"
start-stop-daemon --stop --user foldingathome --pidfile "${PIDFILE}"
eend $?
- [[ -f ${PIDFILE} ]] && killall --user foldingathome --signal SIGKILL
}