summaryrefslogtreecommitdiff
path: root/net/quagga/files/watchquagga.in
blob: 9e6f23dd47244d7c9c9bed0b1e1e02d8e786bb1d (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
#!/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"