openbsd-ports/databases/riak/pkg
ajacoutot 4ac8597733 Add a @comment as to why _riak requires a valid homedir and shell.
Tweak rc.d(8) script:
* no need for a bin var, we have daemon for that
* set rc_reload and rc_usercheck to no
* don't redirect to /dev/null
* implement rc_check() using 'riak ping'

with and ok jmatthew@ (maintainer)
2012-08-28 05:46:41 +00:00
..
DESCR
PFRAG.shared
PLIST Add a @comment as to why _riak requires a valid homedir and shell. 2012-08-28 05:46:41 +00:00
README Don't hardcode gmake, use ${MAKE_PROGRAM}. 2012-08-25 06:33:14 +00:00
riak.rc Add a @comment as to why _riak requires a valid homedir and shell. 2012-08-28 05:46:41 +00:00

$OpenBSD: README,v 1.2 2012/08/25 06:33:14 ajacoutot Exp $

+-----------------------------------------------------------------------
| Running ${FULLPKGNAME} on OpenBSD
+-----------------------------------------------------------------------

Setting up a Riak cluster
=========================

See http://wiki.basho.com/Adding-and-Removing-Nodes.html for information
on setting up a new Riak cluster.

File descriptor limits
======================

Riak requires a large number of open files to run reliably.  See 
http://wiki.basho.com/Open-Files-Limit.html and
http://wiki.basho.com/LevelDB.html for more information.

To raise the open file descriptor limit for riak, add the following to
the login.conf(5) file:

	riak:\
		:openfiles-cur=2048:\
		:tc=daemon:

Rebuild the login.conf.db file if necessary:

	# [ -f /etc/login.conf.db ] && cap_mkdb /etc/login.conf

And assign the _riak user to the riak login class:

	# usermod -L riak _riak