ports/net/bird/files/bird.in
Alexander V. Chernikov b7ee07bbae Add reload command.
PR:		ports/185180
Submitted by:	Radim Kolar <hsn@sendmail.cz>
Approved by:	az
2013-12-26 07:20:49 +00:00

34 lines
612 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"}
command_args="-c $bird_config"
run_rc_command "$1"