blob: cddf6528f2bbf56426fc5a7fd8687aa316f63b15 (
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
|
#!/bin/sh
#
# $FreeBSD$
#
# PROVIDE: bgpd
# REQUIRE: LOGIN abi
# BEFORE: securelevel
# KEYWORD: shutdown
# Add the following lines to /etc/rc.conf to enable openbgpd:
#
# openbgpd_enable="YES"
# openbgpd_flags="<set as needed>"
#
# See bgpd(8) for openbgpd_flags
. /etc/rc.subr
name=openbgpd
rcvar=openbgpd_enable
extra_commands=reload
command="%%PREFIX%%/sbin/bgpd"
required_files="%%PREFIX%%/etc/bgpd.conf"
: ${openbgpd_enable=NO}
check_process()
{
/bin/pgrep -f 'bgpd: parent.*'
}
load_rc_config $name
run_rc_command "$1"
|