From ac26fe1e0e4e3e982886825c0084018a7042c6f5 Mon Sep 17 00:00:00 2001 From: Jorge Hernandez Date: Mon, 9 Oct 2017 21:26:57 -0500 Subject: [PATCH] ensure policies are not pushed until drools is up Change-Id: I6706fb126ea60abdfb0c540d07b305b8305d0b65 Issue-ID: POLICY-295 Signed-off-by: Jorge Hernandez --- policy-pe/do-start.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/policy-pe/do-start.sh b/policy-pe/do-start.sh index 49ddf257..ab8e5a19 100644 --- a/policy-pe/do-start.sh +++ b/policy-pe/do-start.sh @@ -77,7 +77,7 @@ fi policy.sh start -# on pap, wait for pap, pdp, brmsgw, and nexus up, +# on pap, wait for pap, pdp, brmsgw, nexus and drools up, # then push the initial default policies if [[ $container == pap ]]; then ./wait-for-port.sh pap 9091 @@ -85,6 +85,7 @@ if [[ $container == pap ]]; then # brmsgw doesn't have a REST API, so check for JMX port instead ./wait-for-port.sh brmsgw 9989 ./wait-for-port.sh nexus 8081 + ./wait-for-port.sh drools 6969 # wait addional 1 minute for all processes to get fully initialized and synched up sleep 60 bash -xv config/push-policies.sh -- 2.16.6