Skip to content

Commit b569bb4

Browse files
authored
Merge pull request #517 from geoadmin/fix_update_liveness_probe
Fix update liveness probe
2 parents 94b4117 + cd3abd8 commit b569bb4

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ RUN groupadd -r geodata -g 2500 && \
3939
FROM sphinxsearch_geodata
4040

4141
# copy sphinxsearch config and maintenance code
42-
COPY --chown=geodata:geodata scripts/docker-* scripts/index-sync-rotate.sh scripts/pg2sphinx_trigger.py /
42+
COPY --chown=geodata:geodata scripts/docker-* scripts/index-sync-rotate.sh scripts/pg2sphinx_trigger.py scripts/checker.sh /
4343
COPY --chown=geodata:geodata conf /conf/
4444

4545
# default CMD

scripts/checker.sh

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
#!/bin/bash
2+
set -e
3+
set -u
4+
set -o pipefail
5+
6+
# Do the lifeness check exit status 0 -> success | 1 -> fail
7+
searchd --status 1> /dev/null && exit 0 || exit 1

0 commit comments

Comments
 (0)