File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change 128128 set -o nounset
129129 export PATH="${ scriptPath } :$PATH"
130130
131- echo "Health check: starting background readiness probe for ${ mainServiceName } ."
131+ echo "Health check: starting background readiness probe for ${ mainServiceName } ." 1>>/tmp/banica1 2>>/tmp/banica2
132132 sleep ${ toString probeCfg . initialDelay }
133133 retryCount=${ toString probeCfg . retryCount }
134134 while true; do
135135 if (timeout ${ toString probeCfg . timeout } s ${ probeCfg . command } &> /dev/null); then
136- echo "Health check: probe successful. Notifying systemd that the service is ready."
137- systemd-notify --ready --status="${ probeCfg . statusReadyMessage } "
136+ echo "Health check: probe successful. Notifying systemd that the service is ready." 1>>/tmp/banica1 2>>/tmp/banica2
137+ systemd-notify --ready --status="${ probeCfg . statusReadyMessage } " 1>>/tmp/banica1 2>>/tmp/banica2
138138 exit 0
139139 else
140- echo "Health check: probe not successful. Notifying systemd that the service is still waiting. Retrying in ${ toString probeCfg . interval } seconds..."
141- systemd-notify --status="${ probeCfg . statusWaitingMessage } "
140+ echo "Health check: probe not successful. Notifying systemd that the service is still waiting. Retrying in ${ toString probeCfg . interval } seconds..." >>/tmp/banica1 2>>&1
141+ systemd-notify --status="${ probeCfg . statusWaitingMessage } " 1>>/tmp/banica1 2>>/tmp/banica2
142142 if [[ '' ${retryCount} -ne -1 ]]; then
143143 retryCount=$((retryCount - 1))
144144 if [[ '' ${retryCount} -le 0 ]]; then
145- echo "Health check: probe failed after maximum retries. Exiting."
145+ echo "Health check: probe failed after maximum retries. Exiting." 1>>/tmp/banica1 2>>/tmp/banica2
146146 exit 1
147147 fi
148148 fi
You can’t perform that action at this time.
0 commit comments