mirror of
https://github.com/paulscherrerinstitute/sf_daq_buffer.git
synced 2026-05-11 07:52:04 +02:00
Improve service points for entry
This commit is contained in:
@@ -11,13 +11,14 @@ if [[ -z "${SERVICE_NAME}" ]]; then
|
||||
exit 1;
|
||||
fi
|
||||
|
||||
REDIS_HOST="${REDIS_HOST:-127.0.0.1}"
|
||||
REDIS_SKIP="${REDIS_SKIP:-false}"
|
||||
REDIS_CONFIG_KEY=config."${PIPELINE_NAME}"
|
||||
REDIS_STATUS_KEY=status."${PIPELINE_NAME}.${SERVICE_NAME}"
|
||||
|
||||
# Download config from Redis to redis_config.json and start status reporting.
|
||||
if [ "${REDIS_SKIP}" = false ]; then
|
||||
REDIS_HOST="${REDIS_HOST:-127.0.0.1}"
|
||||
REDIS_CONFIG_KEY=config."${PIPELINE_NAME}"
|
||||
REDIS_STATUS_KEY=status."${PIPELINE_NAME}.${SERVICE_NAME}"
|
||||
|
||||
redis-cli -h "${REDIS_HOST}" get "${REDIS_CONFIG_KEY}" > redis_config.json
|
||||
|
||||
CONFIG_BYTES="$(stat -c %s redis_config.json)"
|
||||
@@ -30,6 +31,5 @@ if [ "${REDIS_SKIP}" = false ]; then
|
||||
redis_status.sh &
|
||||
fi
|
||||
|
||||
|
||||
EXECUTABLE="${@:1}"
|
||||
exec "$EXECUTABLE"
|
||||
Reference in New Issue
Block a user