summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorJan Lehnardt <jan@apache.org>2010-06-25 18:50:03 +0000
committerJan Lehnardt <jan@apache.org>2010-06-25 18:50:03 +0000
commitbbd0703f769bac618c0dec22ebf2d14b0a5df5b8 (patch)
tree3fe8941965b2d25748c30394ed99563bbc9a1e82 /bin
parent8dd355224e8731c9d1a77987651fab040fd33b6f (diff)
make erl start options and ./bin/couchdb -h output more robust
git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@958073 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'bin')
-rw-r--r--bin/couchdb.tpl.in5
1 files changed, 3 insertions, 2 deletions
diff --git a/bin/couchdb.tpl.in b/bin/couchdb.tpl.in
index f6dc4090..94d47439 100644
--- a/bin/couchdb.tpl.in
+++ b/bin/couchdb.tpl.in
@@ -15,6 +15,7 @@
BACKGROUND=false
DEFAULT_CONFIG_DIR=%localconfdir%/default.d
DEFAULT_CONFIG_FILE=%localconfdir%/%defaultini%
+ERL_START_OPTIONS="-sasl errlog_type error +K true +A 4"
HEART_BEAT_TIMEOUT=11
HEART_COMMAND="%bindir%/%couchdb_command_name% -k"
INTERACTIVE=false
@@ -63,7 +64,7 @@ The $basename command runs the %package_name% server.
Erlang is called with:
- -sasl errlog_type error +K true
+ $ERL_START_OPTIONS
Erlang inherits the environment of this command.
@@ -221,7 +222,7 @@ start_couchdb () {
touch $PID_FILE
interactive_option="+Bd -noinput"
fi
- command="%ERL% $interactive_option -sasl errlog_type error +K true +A 4 \
+ command="%ERL% $interactive_option $ERL_START_OPTIONS \
-env ERL_LIBS %localerlanglibdir% -couch_ini $start_arguments -s couch"
if test "$BACKGROUND" = "true" -a "$RECURSED" = "false"; then
$0 $background_start_arguments -b -r $RESPAWN_TIMEOUT -p $PID_FILE \