Skip to content
This repository has been 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
wants to merge 1 commit into
base: develop
Choose a base branch
from

Conversation

mitchellwrosen
Copy link
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
Contributor Author

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

@mitchellwrosen
Copy link
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