aboutsummaryrefslogtreecommitdiffstats
path: root/net/openospfd/files/openospfd.sh.in
blob: 473e4bcede56edf9b41c18d793738a46f6f87c4d (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: ospfd
# REQUIRE: LOGIN abi
# BEFORE:  securelevel
# KEYWORD: shutdown

# Add the following lines to /etc/rc.conf to enable openospfd:
#
# openospfd_enable="YES"
# openospfd_flags="<set as needed>"
#
# See ospfd(8) for openospfd_flags

. "%%RC_SUBR%%"

name="openospfd"
rcvar=`set_rcvar`

extra_commands="reload"
command="%%PREFIX%%/sbin/ospfd"
required_files="%%PREFIX%%/etc/ospfd.conf"

load_rc_config "$name"
: ${openospfd_enable="NO"}

run_rc_command "$1"