summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Gianelloni <wolf31o2@gentoo.org>2008-06-12 23:09:08 +0000
committerChris Gianelloni <wolf31o2@gentoo.org>2008-06-12 23:09:08 +0000
commit81792ff95e51e5a4c747a7c7a0853afbd656362d (patch)
treef60fbc33e5a4d0bb8b83726fe94b1e809fed2172 /app-misc/dnetc/files/dnetc.initd
parentRemoving app-misc/livecd-tools, since it is in the tree now. (diff)
downloadwolf31o2-81792ff95e51e5a4c747a7c7a0853afbd656362d.tar.gz
wolf31o2-81792ff95e51e5a4c747a7c7a0853afbd656362d.tar.bz2
wolf31o2-81792ff95e51e5a4c747a7c7a0853afbd656362d.zip
Removing app-misc/dnetc since the in-tree version is better.
svn path=/; revision=206
Diffstat (limited to 'app-misc/dnetc/files/dnetc.initd')
-rw-r--r--app-misc/dnetc/files/dnetc.initd84
1 files changed, 0 insertions, 84 deletions
diff --git a/app-misc/dnetc/files/dnetc.initd b/app-misc/dnetc/files/dnetc.initd
deleted file mode 100644
index 278be05..0000000
--- a/app-misc/dnetc/files/dnetc.initd
+++ /dev/null
@@ -1,84 +0,0 @@
-#!/sbin/runscript
-# Copyright 1999-2008 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/app-misc/dnetc/files/dnetc.init-r2,v 1.1 2006/01/15 16:34:23 voxus Exp $
-
-opts="${opts} reload fetch flush"
-
-depend() {
- use net
-}
-
-processOpts() {
- local retVal=1
-
- DNETPATH="/opt/distributed.net"
- DNETBIN="${DNETPATH}/dnetc"
-
- STARTOPTS="--start --chuid dnetc:dnetc --quiet \
- --exec ${DNETBIN}"
-
- DNETOPTS="-quiet"
-
- if [ -e /etc/conf.d/dnetc ] ; then
- retVal=0
- DNETOPTS="${DNETOPTS} -ini /etc/conf.d/dnetc"
- elif [ -e ${DNETPATH}/dnetc.ini ]; then
- retVal=0
- DNETOPTS="${DNETOPTS} -ini ${DNETPATH}/dnetc.ini"
- elif [ ! -z ${EMAIL} ]; then
- retVal=0
- fi
-
- # override ini settings with values in /etc/conf.d/dnetc
-
- DNETOPTS="${DNETOPTS} ${EMAIL:+-e ${EMAIL}}"
- if [ ! -z ${BUFFER_BASE_DIR} ] ; then
- local buff_in="${BUFFER_BASE_DIR:+${BUFFER_BASE_DIR}/}buff-in"
- local buff_out="${BUFFER_BASE_DIR:+${BUFFER_BASE_DIR}/}buff-out"
- DNETOPTS="${DNETOPTS} -inbase ${buff_in}"
- DNETOPTS="${DNETOPTS} -outbase ${buff_out}"
- fi
- DNETOPTS="${DNETOPTS} ${KEYSERVER_ADDRESS:+-a ${KEYSERVER_ADDRESS}}"
-
- if [ ${retVal} -ne 0 ] ; then
- eerror "Need some sort of configuration. Check /etc/conf.d/dnetc."
- fi
-
- return ${retVal}
-}
-
-start() {
- processOpts || return 1
- ebegin "Starting distributed.net client"
- start-stop-daemon ${STARTOPTS} -- ${DNETOPTS}
- eend ${?}
-}
-
-stop() {
- processOpts || return 1
- ebegin "Stopping distributed.net client"
- start-stop-daemon --stop --quiet --exec ${DNETBIN} --
- eend ${?}
-}
-
-reload() {
- processOpts || return 1
- ebegin "Reloading distributed.net client"
- start-stop-daemon --stop --quiet --signal HUP --exec ${DNETBIN}
- eend ${?}
-}
-
-fetch() {
- processOpts || return 1
- ebegin "Fetching distributed.net client buffers"
- ${DNETBIN} ${DNETOPTS} -fetch
- eend ${?}
-}
-
-flush() {
- processOpts || return 1
- ebegin "Flushing distributed.net client buffers"
- ${DNETBIN} ${DNETOPTS} -flush
- eend ${?}
-}