1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-21 00:25:50 +00:00

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:
Hiroki Sato 2014-06-03 19:50:10 +00:00
parent 3104b11353
commit 4b5750cc94
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=356399
2 changed files with 10 additions and 5 deletions

View File

@ -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

View File

@ -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"