#!/bin/sh

# $FreeBSD: net/quagga/files/watchquagga.in 302141 2012-08-05 23:19:36Z dougb $
#
# PROVIDE: watchquagga
# REQUIRE: NETWORKING quagga
#
# Add the following line to /etc/rc.conf to enable quagga:
# watchquagga_enable="YES"
#
# You may also wish to use the following variables to fine-tune startup:
# watchquagga_flags
#
#

. /etc/rc.subr

name="watchquagga"
rcvar=watchquagga_enable


stop_postcmd=stop_postcmd

stop_postcmd()
{
  rm -f $pidfile
}

# set defaults

load_rc_config $name

: ${watchquagga_enable="NO"}

command=/usr/local/sbin/watchquagga
pidfile=/var/run/quagga/watchquagga.pid
run_rc_command "$1"
