head	1.2;
access;
symbols;
locks; strict;
comment	@# @;


1.2
date	2007.03.27.15.27.44;	author mr_bones_;	state dead;
branches;
next	1.1;
commitid	1e4460937f04567;

1.1
date	2006.02.17.04.20.48;	author labmonkey;	state Exp;
branches;
next	;


desc
@@


1.2
log
@clean out old versions with keywords overshadowed by newer ebuilds
(Portage version: 2.1.2.2)
@
text
@#!/sbin/runscript
# Copyright 1999-2005 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/app-backup/bacula/files/1.38.5/bacula-all-init,v 1.1 2006/02/17 04:20:48 labmonkey Exp $

depend() {
	need net
	if [ ${LOCAL_DB} -eq 1 ]; then
		need "%database%"
	fi
	use dns
}

start() {
	local retval=0
	for s in ${SERVICES} ; do
		case ${s} in
			sd)
				ebegin "Starting bacula storage daemon"
				start-stop-daemon --start --quiet --exec /usr/sbin/bacula-sd \
					-- ${SD_OPTIONS}
				retval=$(( $retval + $? ))
				;;
			fd)
				ebegin "Starting bacula file daemon"
				start-stop-daemon --start --quiet --exec /usr/sbin/bacula-fd \
					-- ${FD_OPTIONS}
				retval=$(( $retval + $? ))
				;;
			dir)
				ebegin "Starting bacula director"
				start-stop-daemon --start --quiet --exec /usr/sbin/bacula-dir \
					-- ${DIR_OPTIONS}
				retval=$(( $retval + $? ))
				;;		
		esac
	done
	eend $retval
}

stop() {
	local retval=0
	for s in ${SERVICES} ; do
		case ${s} in
			sd)
				ebegin "Stopping bacula storage daemon"
				start-stop-daemon --stop --quiet --pidfile /var/run/bacula-sd.*.pid 
				retval=$(( $retval + $? ))
				;;
			fd)
				ebegin "Stopping bacula file daemon"
				start-stop-daemon --stop --quiet --pidfile /var/run/bacula-fd.*.pid
				retval=$(( $retval + $? ))
				;;
			dir)
				ebegin "Stopping bacula director"
				start-stop-daemon --stop --quiet --pidfile /var/run/bacula-dir.*.pid
				retval=$(( $retval + $? ))
				;;		
		esac
	done
	eend $retval
}
@


1.1
log
@Revision bump for 1.36.3 to include docs, use separate init scripts per bacula-split-init USE flag, and port to modular-x compatibility.  Added 1.38.5 ebuild.
(Portage version: 2.0.51.22-r2)
@
text
@d4 1
a4 1
# $Header: $
@

