diff options
author | Konstantin V. Arkhipov <voxus@gentoo.org> | 2006-01-03 22:53:48 +0000 |
---|---|---|
committer | Konstantin V. Arkhipov <voxus@gentoo.org> | 2006-01-03 22:53:48 +0000 |
commit | a30e675ce7a545b755afaa784e4c1fe6bc4e872a (patch) | |
tree | e65575b0d1ad62b67fdd2b31c977a5caff8bf467 /app-misc/dnetc/files | |
parent | Marked Stable on amd64. Fixes bug #117628. (diff) | |
download | gentoo-2-a30e675ce7a545b755afaa784e4c1fe6bc4e872a.tar.gz gentoo-2-a30e675ce7a545b755afaa784e4c1fe6bc4e872a.tar.bz2 gentoo-2-a30e675ce7a545b755afaa784e4c1fe6bc4e872a.zip |
* closing bug #104527
(Portage version: 2.1_pre3-r1)
Diffstat (limited to 'app-misc/dnetc/files')
-rw-r--r-- | app-misc/dnetc/files/digest-dnetc-2.9011.496-r1 | 2 | ||||
-rwxr-xr-x | app-misc/dnetc/files/dnetc.init-r1 | 40 |
2 files changed, 42 insertions, 0 deletions
diff --git a/app-misc/dnetc/files/digest-dnetc-2.9011.496-r1 b/app-misc/dnetc/files/digest-dnetc-2.9011.496-r1 new file mode 100644 index 000000000000..f4430978f977 --- /dev/null +++ b/app-misc/dnetc/files/digest-dnetc-2.9011.496-r1 @@ -0,0 +1,2 @@ +MD5 593a069b6faab12316073876d147c8ba dnetc496-linux-amd64-elf.tar.gz 481070 +MD5 2e03d0463cce7362404f2254dd072640 dnetc496-linux-x86-elf-uclibc.tar.gz 255750 diff --git a/app-misc/dnetc/files/dnetc.init-r1 b/app-misc/dnetc/files/dnetc.init-r1 new file mode 100755 index 000000000000..6c34328b6f32 --- /dev/null +++ b/app-misc/dnetc/files/dnetc.init-r1 @@ -0,0 +1,40 @@ +#!/sbin/runscript +# Copyright 1999-2004 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/app-misc/dnetc/files/dnetc.init-r1,v 1.1 2006/01/03 22:53:48 voxus Exp $ + +depend() { + use net +} + +start() { + ebegin "Starting distributed.net client" + + DNETPATH="/opt/distributed.net" + + STARTOPTS="--start --chuid dnetc:dnetc --quiet \ + --exec /opt/distributed.net/dnetc" + + if [ -e ${DNETPATH}/dnetc.ini ]; then + # use ini file + start-stop-daemon ${STARTOPTS} -- \ + -quiet -ini ${DNETPATH}/dnetc.ini + + elif [ ! -e ${DNETPATH}/dnetc.ini ] && [ ! -z ${EMAIL} ]; then + # email adress from config + start-stop-daemon ${STARTOPTS} -- \ + -quiet -e ${EMAIL} + + else + exit 1 + fi + eend ${?} +} + +stop() { + # sends SIGTERM to all running clients. + ebegin "Stopping distributed.net client" + start-stop-daemon --stop --quiet \ + --exec /opt/distributed.net/dnetc -- stop + eend ${?} +} |