blob: 0bf39974a54568827478974172a5f943073f0595 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
#!/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,v 1.7 2004/07/14 21:32:34 agriffis Exp $
depend() {
use net
}
start() {
ebegin "Starting distributed.net client"
if [ -e /opt/distributed.net/dnetc.ini ]; then
# use ini file
/opt/distributed.net/dnetc -quiet -ini /opt/distributed.net/dnetc.ini
elif [ ! -e /opt/distributed.net/dnetc.ini ] && [ ! -z ${EMAIL} ]; then
# email adress from config
/opt/distributed.net/dnetc -quiet -e ${EMAIL}
else
exit 1
fi
eend $?
}
stop() {
# sends SIGTERM to all running clients.
ebegin "Stopping distributed.net client"
/opt/distributed.net/dnetc -quiet -shutdown # remove '-quiet' to see activity.
eend $?
}
|