Skip to content

Commit

Permalink
does a node and cluster check on post-start (see pivotal-cf#87)
Browse files Browse the repository at this point in the history
  • Loading branch information
MatthiasWinzeler committed Jun 15, 2018
1 parent 0d88b6a commit bca8b5f
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
1 change: 1 addition & 0 deletions jobs/rabbitmq-server/spec
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
9 changes: 9 additions & 0 deletions jobs/rabbitmq-server/templates/post-start.bash
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit bca8b5f

Please sign in to comment.