ports/net/frr/files/watchfrr.in
Olivier Cochard 0014661d9d New port: net/frr
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
2017-06-29 21:05:33 +00:00

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"