#!/bin/sh
#
# PROVIDE: irrd
# REQUIRE: DAEMON

name="irrd"

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

: ${irrd_conf:="/usr/pkg/etc/irrd/irrd.conf"}

rcvar=${name}
required_files="${irrd_conf}"
command="/usr/pkg/sbin/irrd"
command_args="-f ${irrd_conf} -l irrd -g irrd"

load_rc_config $name
run_rc_command "$1"
