summaryrefslogtreecommitdiff
path: root/etc/rc.d/bgpd
blob: b7e3e1657addc49c650c8a9e809cdbe56ce09368 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/bin/ksh
#
# $OpenBSD: bgpd,v 1.5 2019/01/21 01:41:16 claudio Exp $

daemon="/usr/sbin/bgpd"

. /etc/rc.d/rc.subr

# child will not return a config parsing error to the parent
rc_pre() {
	# use rcexec here since daemon_flags may contain arguments with spaces
	${rcexec} "${daemon} -n ${daemon_flags}"
}

rc_cmd $1