blob: 1b7870f4ebd564b55fd693e3f6f1d2266012dd7a (
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
31
32
33
34
35
36
37
|
#!/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"
|