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.
1 parent 90f3f9d commit 2f660d2Copy full SHA for 2f660d2
init-plain/usr/local/bin/healthcheck.sh
@@ -0,0 +1,14 @@
1
+#!/bin/bash
2
+echo "[II] qnib/init-plain script v0.4.19"
3
+HEALTHCHECK_DIR=${HEALTHCHECK_DIR:-/opt/qnib/healthchecks/}
4
+set -e
5
+
6
+if [[ ! -d ${HEALTHCHECK_DIR} ]];then
7
+ echo "> No healthcheck dir found '${HEALTHCHECK_DIR}'"
8
+ exit 0
9
+fi
10
+while read -r line;do
11
+ echo "> execute healthcheck '${x}'"
12
+ ${x}
13
+done <<< $(find ${HEALTHCHECK_DIR} -type f -perm /u+x |sort)
14
+exit 0
0 commit comments