1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-11 07:22:22 +00:00
freebsd-ports/net/babeld/files/babeld.in
Guido Falsi baca2b933f - Update net/babeld to 1.8.2
- Add startup script
- Add sample configuration file

PR:		229785
Submitted by:	Max Stucchi ?<max@stucchi.ch>
Approved by:	Maintainer timeout
2018-09-27 08:56:06 +00:00

36 lines
658 B
Bash

#!/bin/sh
# $FreeBSD$
#
# PROVIDE: babeld dynamicrouting
# REQUIRE: LOGIN
# KEYWORD: shutdown
#
# Add the following lines to /etc/rc.conf.local or /etc/rc.conf
# to enable this service:
#
# babeld_enable (bool): Set to NO by default.
# Set it to YES to enable babeld.
# babeld_config (path): Set to /usr/local/etc/babeld.conf
# by default.
#
. /etc/rc.subr
name="babeld"
rcvar=babeld_enable
command=/usr/local/bin/${name}
load_rc_config $name
extra_commands="reload"
: ${babeld_enable="NO"}
: ${babeld_config="/usr/local/etc/babeld.conf"}
command_args="-D -I /var/run/${name}.pid $babeld_config"
run_rc_command "$1"