#!/sbin/openrc-run

name="Bareos Storage daemon"
pidfile=/run/bareos/bareos-sd.9103.pid
command=/usr/sbin/bareos-sd
command_args="-u bareos -g bareos"

depend() {
	need net
	use dns
}

start_pre() {
	checkpath -dm750 -o bareos "${pidfile%/*}"
}
