Martin Mágr c2d2f93d99 Add healthcheck script for etcd
This patch adds script for docker health check of etcd service.
The script uses etcdctl control tool to check enpoint health.

Change-Id: Idd759abc454b17f3798900c5bab9ef68899610d7
2018-02-23 14:04:12 +01:00

6 lines
86 B
Bash

#!/bin/bash
export ETCDCTL_API=3
etcdctl endpoint health | grep "is healthy"
exit $?