diff options
| author | Michael Klishin <michael@clojurewerkz.org> | 2017-10-19 20:04:23 +0300 |
|---|---|---|
| committer | Michael Klishin <michael@clojurewerkz.org> | 2017-10-19 20:04:23 +0300 |
| commit | 51aca8851eba66445ad5b164fc92b2ffa0692fc2 (patch) | |
| tree | bb2ddc043bfea9756ea847ef88efe896ecd1d990 /include | |
| parent | be796e0c6fe9237ab5e9b1bae86b0de2f7b0a19a (diff) | |
| download | rabbitmq-server-git-51aca8851eba66445ad5b164fc92b2ffa0692fc2.tar.gz | |
Use a special exit code when server reports an error on shutdown
This way tools that manage RabbitMQ nodes can detect this condition
among a bunch of fairly generic exit codes.
Note that when a timeout occurs, we still use a "temporary failure" code.
See rabbitmq/rabbitmq-server#1396 for context.
Diffstat (limited to 'include')
| -rw-r--r-- | include/rabbit_cli.hrl | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/rabbit_cli.hrl b/include/rabbit_cli.hrl index 12fa5b4dd8..0908f82775 100644 --- a/include/rabbit_cli.hrl +++ b/include/rabbit_cli.hrl @@ -72,3 +72,8 @@ -define(EX_SOFTWARE , 70). % Failed to execute command. -define(EX_TEMPFAIL , 75). % Temporary error (e.g. something has timed out). -define(EX_CONFIG , 78). % Misconfiguration detected + +% Non-standard code that indicates that node shutdown failed with an error +% other than an unsuccessfull RPC call or a timeout. See rabbitmq/rabbitmq-server#1396 +% for context. +-define(EX_SHUTDOWN_ERROR, 79). |
