Make rc.d/openbgpd send signals only to the parent daemon process to fix
a race condition. Submitted by: naddy
This commit is contained in:
parent
3104b11353
commit
4b5750cc94
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=356399
@ -2,7 +2,7 @@
|
||||
|
||||
PORTNAME= openbgpd
|
||||
PORTVERSION= 5.2.20121209
|
||||
PORTREVISION= 1
|
||||
PORTREVISION= 2
|
||||
CATEGORIES= net
|
||||
MASTER_SITES= ${MASTER_SITE_OPENBSD}
|
||||
MASTER_SITE_SUBDIR= OpenBGPD
|
||||
|
@ -17,14 +17,19 @@
|
||||
|
||||
. /etc/rc.subr
|
||||
|
||||
name="openbgpd"
|
||||
name=openbgpd
|
||||
rcvar=openbgpd_enable
|
||||
|
||||
extra_commands="reload"
|
||||
extra_commands=reload
|
||||
command="%%PREFIX%%/sbin/bgpd"
|
||||
required_files="%%PREFIX%%/etc/bgpd.conf"
|
||||
|
||||
load_rc_config "$name"
|
||||
: ${openbgpd_enable="NO"}
|
||||
: ${openbgpd_enable=NO}
|
||||
|
||||
check_process()
|
||||
{
|
||||
/bin/pgrep -f 'bgpd: parent.*'
|
||||
}
|
||||
|
||||
load_rc_config $name
|
||||
run_rc_command "$1"
|
||||
|
Loading…
Reference in New Issue
Block a user