#!/sbin/runscript # Copyright 1999-2008 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: /var/cvsroot/gentoo-x86/sci-physics/root/files/olbd.initd,v 1.1 2008/12/18 18:10:18 bicatali Exp $ depend() { need net use dns logger provide root-file-server } start() { ebegin "Starting ROOT open load balancer server" start-stop-daemon --start --quiet --user=${OLBD_USER} \ --make-pidfile --pidfile=/var/run/olbd.pid \ --exec /usr/bin/olbd --background -- ${OLBD_OPTS} eend $? } stop() { ebegin "Stopping ROOT open load balancer server" start-stop-daemon --stop --quiet \ --pidfile=/var/run/olbd.pid \ --exec /usr/bin/olbd eend $? }