summaryrefslogtreecommitdiff
blob: 80d4b2eddfdf49bd35676fe130bd9ceaf90e9dc4 (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
30
31
32
33
34
35
#!/sbin/runscript
# Copyright 1999-2003 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License, v2 or later
# $Header: /var/cvsroot/gentoo-x86/sys-devel/gecc/files/rc.geccd,v 1.2 2003/02/14 23:27:35 vapier Exp $

depend()
{
	need net
}

start()
{
	local myopts
	if [ ! -z "${GECCD_CENTRAL}" ]; then
		myopts="-c -a ${GECCD_CENTRAL} -A ${GECCD_PORT}"
	fi

	ebegin "Starting geccd"
	start-stop-daemon --start --quiet --exec /usr/bin/geccd -- \
						 ${myopts} \
						 -c \
						 -p ${GECCD_PORT} \
						 -C ${GECCD_CACHE} \
						 -j ${GECCD_JOBS} \
						 -s /var/run/geccd.sock \
						 --pid-file /var/run/geccd.pid
	eend $?
}

stop()
{
	ebegin "Stopping geccd"
	start-stop-daemon --stop --quiet -p /var/run/geccd.pid
	eend $?
}