From 5bce2d9a8196a90e9d3972b90934d79bad4bb8e1 Mon Sep 17 00:00:00 2001 From: Ilya Mashchenko Date: Mon, 31 May 2021 14:34:18 +0300 Subject: claiming: exit 0 when daemon not running and the claim was successful (#11195) --- claim/netdata-claim.sh.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/claim/netdata-claim.sh.in b/claim/netdata-claim.sh.in index 137d112fc3..18813a6bab 100755 --- a/claim/netdata-claim.sh.in +++ b/claim/netdata-claim.sh.in @@ -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]}\"" -- cgit v1.2.3