Skip to content

riak 3.x riak chkconfig command returns non-zero on success #1125

Description

@tburghart

Per the relx extension script contract, extension scripts should exit with an appropriate result code.

riak/rel/files/riak-chkconfig does not do this (the two other extension scripts do), and therefore picks up the non-zero exit provided by the relx-generated bin/riak script.

The solution is to add the following (or something like it) to the end of the rel/files/riak-chkconfig file:

--- a/rel/files/riak-chkconfig
+++ b/rel/files/riak-chkconfig
@@ ...

 echo $CUTTLE_CONF
+
+# No explicit exit from within script or tools, assumed to have succeeded.
+exit 0

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions