#!/sbin/runscript
# Copyright 1999-2004 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-db/xindice/files/xindice-r2,v 1.1 2004/10/06 06:58:49 phosphan Exp $

depend() {
	use net
}

start() {
	ebegin "Starting xindice..."
	start-stop-daemon --pidfile /var/run/xindice/xindice.pid\
		--start --background --user xindice --chuid xindice\
		--exec /opt/xindice/start	
	eend $?
}


stop() {
	ebegin "Stopping xindice..."
	start-stop-daemon --pidfile /var/run/xindice/xindice.pid --stop	--retry 10
	eend $?
}
