#!/bin/sh
#
# $FreeBSD: ports/net/openbgpd/files/openbgpd.in,v 1.2 2012/11/17 06:00:08 svnexp Exp $
#

# PROVIDE: bgpd
# REQUIRE: LOGIN abi
# BEFORE:  securelevel
# KEYWORD: shutdown

# Add the following lines to /etc/rc.conf to enable openbgpd:
#
# openbgpd_enable="YES"
# openbgpd_flags="<set as needed>"
#
# See bgpd(8) for openbgpd_flags

. /etc/rc.subr

name="openbgpd"
rcvar=openbgpd_enable

extra_commands="reload"
command="/usr/local/sbin/bgpd"
required_files="/usr/local/etc/bgpd.conf"

load_rc_config "$name"
: ${openbgpd_enable="NO"}

run_rc_command "$1"
