freebsd-ports/net/quagga/files/watchquagga.in
Mathieu Arnold 1287d3fec2 Update to 0.99.23.1. [1]
General cleanup.

PR:		194090 [1]
Submitted by:	Olivier Cochard [1]
Sponsored by:	Absolight
2014-10-02 15:44:03 +00:00

30 lines
547 B
Bash

#!/bin/sh
#
# $FreeBSD$
#
# PROVIDE: watchquagga
# REQUIRE: NETWORKING quagga
# KEYWORD: shutdown
# Add the following line to /etc/rc.conf to enable watchquagga:
# 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
load_rc_config $name
stop_postcmd="rm -f $pidfile"
watchquagga_enable=${watchquagga_enable:-"NO"}
command=%%PREFIX%%/sbin/watchquagga
pidfile=%%LOCALSTATE_DIR%%/watchquagga.pid
run_rc_command "$1"