basho/riak — pull request #251 by jaredmorrow (2012-12-05 17:52:30+00:00)
Title: `riak stop` does not behave properly on BSD systems

When using `riak stop` in BSD systems a regular expression was failing that attempted to capture the PID of the running Riak node. This PID was used in the `riak stop` command to properly wait for a node to stop completely before returning.

The user experience resulted in the following situation:

```
$ ./bin/riak start
$ ./bin/riak ping
pong
$ ./bin/riak stop
ok
$ ./bin/riak ping
pong
$ ./bin/riak ping
pong
.... some time
$ ./bin/riak ping
pong
$ ./bin/riak ping
Node 'dev1@127.0.0.1' not responding to pings.
```

The expected behavior is like that on Linux, `riak stop` should not return until Riak is fully stopped.