mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-23 04:23:08 +00:00
1895053da9
PR: 232231 Submitted by: Julien Charbon <jcharbon@verisign.com> Submitted by: Asbjorn Mikkelsen <amikkelsen@verisign.com> Sponsored by: Verisign
36 lines
677 B
Bash
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"
|