aboutsummaryrefslogtreecommitdiffstats
path: root/net/quagga/files/watchquagga.in
blob: 737a9f3cc6ba321a910146273296f4181b0120fb (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
#!/bin/sh

# 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%%/%%N%%sbin/watchquagga
pidfile=%%LOCALSTATE_DIR%%/watchquagga.pid

run_rc_command "$1"