1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-23 04:23:08 +00:00
freebsd-ports/net/bird/files/bird.in
Olivier Cochard 1895053da9 Fixes wrong LSA collision detection and add birdvty group
PR:		232231
Submitted by:	Julien Charbon <jcharbon@verisign.com>
Submitted by:	Asbjorn Mikkelsen <amikkelsen@verisign.com>
Sponsored by:	Verisign
2018-11-10 23:02:44 +00:00

36 lines
677 B
Bash

#!/bin/sh
# $FreeBSD$
#
# PROVIDE: bird dynamicrouting
# REQUIRE: LOGIN
# KEYWORD: shutdown
#
# Add the following lines to /etc/rc.conf.local or /etc/rc.conf
# to enable this service:
#
# bird_enable (bool): Set to NO by default.
# Set it to YES to enable bird.
# bird_config (path): Set to %%PREFIX%%/etc/bird.conf
# by default.
#
. /etc/rc.subr
name="bird"
rcvar=bird_enable
command=%%PREFIX%%/sbin/${name}
load_rc_config $name
extra_commands="reload"
: ${bird_enable="NO"}
: ${bird_config="%%PREFIX%%/etc/bird.conf"}
: ${bird_group="birdvty"}
command_args="-P /var/run/${name}.pid -c $bird_config -g $bird_group"
run_rc_command "$1"