ports/net/openbgpd7/files/openbgpd.in
Karsten Schmidt e2bb42ebb0 net/openbgpd7: update 7.6 -> 7.7, and check_process fix
- Upgrade from 7.6 to 7.7
- Fix check_process, "bgpd: parent" no longer matches anything
- Remove unused IPV6LLPEER option

Pull-Request:	https://github.com/freebsd/freebsd-ports/pull/141
Author:		Karsten Schmidt <git@guggemand.dk>
2023-02-26 19:38:37 +01:00

32 lines
551 B
Bash

#!/bin/sh
# PROVIDE: bgpd dynamicrouting
# 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 -j none -U 0 -f %%PREFIX%%/sbin/bgpd
}
load_rc_config $name
run_rc_command "$1"