Skip to content

Commit

Permalink
MB-5184 Append date, time and PID to crash dump name.
Browse files Browse the repository at this point in the history
This makes names more or less unique.

Change-Id: I3c06c9e086806e0816b53b5eda3ef9ac6a292ef0
Reviewed-on: http://review.couchbase.org/21274
Tested-by: Aliaksey Kandratsenka <alkondratenko@gmail.com>
Reviewed-by: Aliaksey Kandratsenka <alkondratenko@gmail.com>
  • Loading branch information
aartamonau authored and Farshid Ghods committed Oct 5, 2012
1 parent 2718d8f commit c6cb9fc
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions couchbase-server.sh.in
Expand Up @@ -35,6 +35,9 @@ couch_start_arguments=""
LD_LIBRARY_PATH="@PREFIX@/lib":"@PREFIX@/lib/memcached":$LD_LIBRARY_PATH LD_LIBRARY_PATH="@PREFIX@/lib":"@PREFIX@/lib/memcached":$LD_LIBRARY_PATH
export LD_LIBRARY_PATH export LD_LIBRARY_PATH


ERL_CRASH_DUMP=erl_crash.dump.$(date +%m-%d-%Y-%H:%M:%S).$$
export ERL_CRASH_DUMP

# For some obscure reason erl requires HOME environment variable to be set. # For some obscure reason erl requires HOME environment variable to be set.
if [ -z "$HOME" ] if [ -z "$HOME" ]
then then
Expand Down

0 comments on commit c6cb9fc

Please sign in to comment.