diff options
Diffstat (limited to 'sci-physics/root/files/olbd.initd')
-rw-r--r-- | sci-physics/root/files/olbd.initd | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/sci-physics/root/files/olbd.initd b/sci-physics/root/files/olbd.initd new file mode 100644 index 000000000..179330040 --- /dev/null +++ b/sci-physics/root/files/olbd.initd @@ -0,0 +1,26 @@ +#!/sbin/runscript +# Copyright 1999-2012 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 $? +} |