1
0
mirror of https://github.com/netdata/netdata.git synced 2021-06-06 23:03:21 +03:00

claiming: exit 0 when daemon not running and the claim was successful (#11195)

This commit is contained in:
Ilya Mashchenko
2021-05-31 14:34:18 +03:00
committed by GitHub
parent 1d493f5f85
commit 5bce2d9a81

View File

@@ -418,7 +418,7 @@ HERE_DOC
exit $EXIT_CODE
fi
echo >&2 "${PROXYMSG}The claim was successful but the agent could not be notified ($?)- it requires a restart to connect to the cloud."
exit 5
[ "$NETDATA_RUNNING" -eq 0 ] && exit 0 || exit 5
fi
echo >&2 "Failed to claim node with the following error message:\"${ERROR_MESSAGES[$EXIT_CODE]}\""