Commits

Anonymous committed 072e9c5

Better error message from 'riak console' when a node is already running

  • Participants
  • Parent commits 1e8e9e4

Comments (0)

Files changed (1)

rel/overlay/bin/riak

         ;;
 
     console)
+        RES=`$NODETOOL ping`
+        if [ "$RES" == "pong" ]; then
+            echo "Node is already running - use 'riak attach' instead"
+            exit 1
+        fi
         # Setup beam-required vars
         ROOTDIR=$RUNNER_BASE_DIR
         BINDIR=$ROOTDIR/erts-$ERTS_VSN/bin