#! /usr/bin/env bash set -Eeo pipefail set +x if [ -z "${STORJ_REDIS_HOST}" ]; then echo STORJ_REDIS_HOST env var is required exit 1 fi if [ -z "${STORJ_REDIS_PORT}" ]; then echo STORJ_REDIS_PORT env var is required exit 1 fi if [ -z "${STORJ_REDIS_DIR}" ]; then echo STORJ_REDIS_DIR env var is required exit 1 fi start() { if [ -f "${STORJ_REDIS_DIR}/redis-server.pid" ]; then return fi if [ ! -f "${STORJ_REDIS_DIR}/redis.conf" ]; then cat >>"${STORJ_REDIS_DIR}/redis.conf" <