Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions rel/files/couchdb.in
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,10 @@ export COUCHDB_FAUXTON_DOCROOT={{fauxton_root}}
ARGS_FILE="${COUCHDB_ARGS_FILE:-$ROOTDIR/etc/vm.args}"
SYSCONFIG_FILE="${COUCHDB_SYSCONFIG_FILE:-$ROOTDIR/releases/$APP_VSN/sys.config}"

if [ -e "${COUCHDB_BIN_DIR}/startup.erl" ]; then
cat "${COUCHDB_BIN_DIR}/startup.erl" > .erlang
fi

exec "$BINDIR/erlexec" -boot "$ROOTDIR/releases/$APP_VSN/couchdb" \
-args_file "${ARGS_FILE}" \
-config "${SYSCONFIG_FILE}" "$@"
6 changes: 6 additions & 0 deletions rel/files/startup.erl.in
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
% Command to run on startup.

code:add_path("./lib").

Result = code:ensure_loaded(dreyfus_index).
couch_log:info("Ensure dreyfus index module is loaded: ~p", [Result]).
1 change: 1 addition & 0 deletions rel/reltool.config
Original file line number Diff line number Diff line change
Expand Up @@ -135,5 +135,6 @@
{template, "overlay/etc/default.ini", "etc/default.ini"},
{template, "overlay/etc/vm.args", "etc/vm.args"},
{template, "files/couchdb.in", "bin/couchdb"},
{template, "files/startup.erl.in", "bin/startup.erl"},
{template, "files/couchdb.cmd.in", "bin/couchdb.cmd"}
]}.