blob: b5a53f492ca3532a87a146a928e96e1d27dbf738 (
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
#
# 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=""
#
#
. %%RC_SUBR%%
name="watchquagga"
rcvar=`set_rcvar`
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"
|