Skip to content

Commit

Permalink
Merge pull request #132 from basho/jem-riak-reboot
Browse files Browse the repository at this point in the history
Remove reboot from runner script
  • Loading branch information
jaredmorrow committed Apr 10, 2014
2 parents 8ff3d9d + bf35569 commit fdf8553
Showing 1 changed file with 1 addition and 19 deletions.
20 changes: 1 addition & 19 deletions priv/base/runner
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ usage() {
cat <<EOF
Usage: $SCRIPT «command»
where «command» is one of the following:
{ help | start | stop | restart | reboot | ping | console | attach
{ help | start | stop | restart | ping | console | attach
attach-direct | ertspath | chkconfig | escript | version | getpid
top [-interval N] [-sort { reductions | memory | msg_q }] [-lines N] } |
config { generate | effective | describe VARIABLE } [-l debug]
Expand Down Expand Up @@ -61,12 +61,6 @@ This is the primary script for controlling the $SCRIPT node.
stopped or not responding, prints:
"Node '$NAME_HOST' not responding to pings."
reboot
Stops and then starts the running $SCRIPT node, exiting the Erlang VM.
Prints "ok" when successful. When the node is already stopped or not
responding, prints:
"Node '$NAME_HOST' not responding to pings."
console
Starts the $SCRIPT node in the foreground, giving access to the Erlang
shell and runtime messages. Prints "Node is already running - use
Expand Down Expand Up @@ -270,18 +264,6 @@ case "$1" in
fi
;;

reboot)
# Bootstrap daemon command (check perms & drop to $RUNNER_USER)
bootstrapd $@

## Restart the VM completely (uses heart to restart it)
$NODETOOL reboot
ES=$?
if [ "$ES" -ne 0 ]; then
exit $ES
fi
;;

ping)
## See if the VM is alive
ping_node
Expand Down

0 comments on commit fdf8553

Please sign in to comment.