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

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

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

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