elastic / elastic/observability-examples

redis directory shell script entrypoint.sh fails on windows based docker desktop

Open
#38 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
42
Forks
31
PR merge metrics
No merged PRs in 30d

Description

_#!/bin/bash
# start a background process that periodically runs redis-cli CLIENT PAUSE to stall the server, if the env var TOGGLE_CLIENT_PAUSE is set to true
echo "performing backup" >&1
if [ "$TOGGLE_CLIENT_PAUSE" = "true" ]; then
echo "Starting redis client-pause loop"
while true; do
echo "performing backup" >&1
redis-cli CLIENT PAUSE 3000 >&1
sleep 30
done &
fi

# start redis
echo "Starting redis-server"
exec redis-server_

fails with message

Syntax error: Bad fd number

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.