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:
@@ -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]}\""
|
||||
|
||||
Reference in New Issue
Block a user