Skip to content
This repository was archived by the owner on Jun 1, 2020. It is now read-only.

Add option to run riak as a standalone process (not an runit service)#54

Open
mitchellwrosen wants to merge 1 commit intohectcastro:developfrom
mitchellwrosen:develop
Open

Add option to run riak as a standalone process (not an runit service)#54
mitchellwrosen wants to merge 1 commit intohectcastro:developfrom
mitchellwrosen:develop

Conversation

@mitchellwrosen
Copy link
Copy Markdown
Contributor

This PR makes two changes:

  1. The in-place seds and other misc. setup are moved from riak.sh to an init script, so that if riak is restarted by runit, these are not re-run unnecessarily.
  2. The riak exec script is placed at /usr/local/bin/run_riak.sh rather than /etc/service/riak/run. Then, an environment variable controlls whether a new init script (init_riak.sh) symlinks /usr/local/bin/run_riak.sh to /etc/service/riak/run, or simply runs it as a background process.

By allowing riak to run outside of runit, I can do things like riak restart from test code that will behave "as intended", i.e. riak and runit will not fight each other over starting the node.

@mitchellwrosen
Copy link
Copy Markdown
Contributor Author

Hm, riak does not start successfully when setting DOCKER_RIAK_SERVICE=0, investigating...

@mitchellwrosen
Copy link
Copy Markdown
Contributor Author

Nevermind, it works :P

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant