#!/bin/sh
#
# PROVIDE: bacula-dir
# REQUIRE: DAEMON

if [ -f /etc/rc.subr ]; then
	. /etc/rc.subr
fi

name="baculadir"
rcvar=$name
command="/usr/pkg/sbin/bacula-dir"
required_files="/usr/pkg/etc/bacula/bacula-dir.conf"
pidfile="/var/run/bacula-dir.9101.pid"
command_args="-c ${required_files} -u bacula-dir -g bacula"

if [ -f /etc/rc.subr ]; then
	load_rc_config $name
	run_rc_command "$1"
else
	echo -n " ${name}"
	${command} ${baculadir_flags} -c ${required_files}
fi
