#!/bin/sh
# Copyright (c) 2011, Couchbase, Inc.
# All rights reserved.

PATH="/opt/couchbase/bin":$PATH
export PATH

ERL_LIBS="/opt/couchbase/lib/couchdb/erlang/lib:/opt/couchbase/lib/ns_server/erlang/lib"
export ERL_LIBS

exec erl -pa ebin -boot start_sasl -sasl errlog_type error -noshell -run ns_log_browser -report_dir "/opt/couchbase/var/lib/couchbase/logs" -run init stop -- "$@"
