From bca8b5f94ccd37850e335cabe0eaf7617c22711a Mon Sep 17 00:00:00 2001 From: Matthias Winzeler Date: Fri, 15 Jun 2018 18:17:11 +0200 Subject: [PATCH] does a node and cluster check on post-start (see https://github.com/pivotal-cf/cf-rabbitmq-release/issues/87) --- jobs/rabbitmq-server/spec | 1 + jobs/rabbitmq-server/templates/post-start.bash | 9 +++++++++ 2 files changed, 10 insertions(+) create mode 100644 jobs/rabbitmq-server/templates/post-start.bash diff --git a/jobs/rabbitmq-server/spec b/jobs/rabbitmq-server/spec index a02ff3c22..4adb56474 100644 --- a/jobs/rabbitmq-server/spec +++ b/jobs/rabbitmq-server/spec @@ -87,6 +87,7 @@ templates: node-check.bash.erb: bin/node-check plugins.sh.erb: bin/plugins.sh post-deploy.bash: bin/post-deploy + post-start.bash: bin/post-start pre-start.bash: bin/pre-start rabbitmq-server.init.bash: bin/rabbitmq-server.init setup.bash: bin/setup.sh diff --git a/jobs/rabbitmq-server/templates/post-start.bash b/jobs/rabbitmq-server/templates/post-start.bash new file mode 100644 index 000000000..e6fa85481 --- /dev/null +++ b/jobs/rabbitmq-server/templates/post-start.bash @@ -0,0 +1,9 @@ +#!/bin/bash -e + +[ -z "$DEBUG" ] || set -x + +PATH=/var/vcap/jobs/rabbitmq-server/bin:$PATH + +node-check "post-start" +cluster-check "post-start" +add-rabbitmqctl-to-path