freebsd-ports/net/openbgpd/files/openbgpd.in
Doug Barton 9aac569eaa Move the rc.d scripts of the form *.sh.in to *.in
Where necessary add $FreeBSD$ to the file

No PORTREVISION bump necessary because this is a no-op
2012-08-05 23:19:36 +00:00

30 lines
490 B
Bash

#!/bin/sh
#
# $FreeBSD$
#
# 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="%%PREFIX%%/sbin/bgpd"
required_files="%%PREFIX%%/etc/bgpd.conf"
load_rc_config "$name"
: ${openbgpd_enable="NO"}
run_rc_command "$1"