summaryrefslogtreecommitdiff
path: root/net/openbgpd8/files/openbgplgd.in
blob: 535ce580b561130f64064b7a02b3dcb3c5e7f8b9 (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
#!/bin/sh

# PROVIDE: bgplgd
# REQUIRE: LOGIN abi
# BEFORE:  securelevel
# KEYWORD: shutdown

# Add the following lines to /etc/rc.conf to enable openbgpd:
#
# openbgplgd_enable="YES"
# openbgplgd_flags="<set as needed>"
#
# See bgplgd(8) for openbgplgd_flags

. /etc/rc.subr

name=openbgpdlgd
rcvar=openbgplgd_enable

extra_commands=reload
command="%%PREFIX%%/sbin/bgplgd"

: ${openbgplgd_enable=NO}

check_process()
{
	/bin/pgrep -j none -U 0 -f %%PREFIX%%/sbin/bgplgd
}

load_rc_config $name
run_rc_command "$1"