freebsd-ports/net/babeld/files/babeld.in
Hung-Yi Chen 9a61a97a87 net/babeld: Fix rc script to pass config file correctly
While here, update WWW

PR:		261094
Reported by:	Dennis Noordsij <dennis.noordsij@alumni.helsinki.fi>
2022-01-11 17:30:07 +08:00

32 lines
646 B
Bash

#!/bin/sh
# 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 -c $babeld_config"
run_rc_command "$1"