Skip to content

Commit c102758

Browse files
committed
Added capability to disable health check
1 parent 9f92c43 commit c102758

2 files changed

Lines changed: 1 addition & 1 deletion

File tree

resources/etcdctl.sh

100644100755
File mode changed.

resources/node-agent.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -225,7 +225,7 @@ echo ok > /tmp/health
225225
while true; do
226226

227227
# we are not healthy anymore when agent_pid is set but process is not running
228-
if [ "$agent_pid" != "" ] && [ ! -d "/proc/$agent_pid" ] ; then
228+
if [ "$agent_pid" != "" ] && [ ! -d "/proc/$agent_pid" ] && [ ! -e /tmp/disable_healthcheck ]; then
229229
# clean up and exit loop
230230
echo "agent process not running anymore, cleaning up..."
231231
clean_up

0 commit comments

Comments
 (0)