#!/bin/bash

set -eo pipefail

if ping="$(/usr/bin/redis-cli -h "127.0.0.1" ping)" && [ "$ping" = 'PONG' ]; then
  echo "Redis is running"
	exit 0
fi

echo "Redis is not running"
exit 1
