1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-23 00:43:28 +00:00
freebsd-ports/net/quagga-re/files/watchquagga.in
Doug Barton 9aac569eaa Move the rc.d scripts of the form *.sh.in to *.in
Where necessary add $FreeBSD$ to the file

No PORTREVISION bump necessary because this is a no-op
2012-08-05 23:19:36 +00:00

38 lines
558 B
Bash

#!/bin/sh
# $FreeBSD$
#
# 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=%%PREFIX%%/sbin/watchquagga
pidfile=%%LOCALSTATE_DIR%%/watchquagga.pid
run_rc_command "$1"