mirror of
https://git.freebsd.org/ports.git
synced 2025-05-19 18:43:13 -04:00
FRRouting (FRR) is an IP routing protocol suite for Linux and Unix platforms which includes protocol daemons for BGP, IS-IS, OSPF and RIP. FRR has its roots in the Quagga project. WWW: https://frrouting.org/ Sponsored by: Orange
30 lines
516 B
Bash
30 lines
516 B
Bash
#!/bin/sh
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
|
|
# PROVIDE: watchfrr
|
|
# REQUIRE: NETWORKING frr
|
|
# KEYWORD: shutdown
|
|
|
|
# Add the following line to /etc/rc.conf to enable watchfrr:
|
|
# watchfrr_enable="YES"
|
|
#
|
|
# You may also wish to use the following variables to fine-tune startup:
|
|
# watchquagga_flags
|
|
|
|
. /etc/rc.subr
|
|
|
|
name=watchfrr
|
|
rcvar=${name}_enable
|
|
|
|
load_rc_config $name
|
|
|
|
stop_postcmd="rm -f $pidfile"
|
|
|
|
watchfrr_enable=${watchfrr_enable:-"NO"}
|
|
|
|
command=%%PREFIX%%/sbin/watchfrr
|
|
pidfile=%%LOCALSTATE_DIR%%/watchfrr.pid
|
|
|
|
run_rc_command "$1"
|