We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 94b4117 + cd3abd8 commit b569bb4Copy full SHA for b569bb4
Dockerfile
@@ -39,7 +39,7 @@ RUN groupadd -r geodata -g 2500 && \
39
FROM sphinxsearch_geodata
40
41
# copy sphinxsearch config and maintenance code
42
-COPY --chown=geodata:geodata scripts/docker-* scripts/index-sync-rotate.sh scripts/pg2sphinx_trigger.py /
+COPY --chown=geodata:geodata scripts/docker-* scripts/index-sync-rotate.sh scripts/pg2sphinx_trigger.py scripts/checker.sh /
43
COPY --chown=geodata:geodata conf /conf/
44
45
# default CMD
scripts/checker.sh
@@ -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