From 87f7630fa3e2fa1b8d88a3eff8853ca571aaaeb3 Mon Sep 17 00:00:00 2001 From: Badlop Date: Mon, 26 Nov 2007 08:57:21 +0000 Subject: [PATCH] * src/ejabberdctl.template: Write erl_crash.dump in the log/ directory, with unique filename (EJAB-433). SVN Revision: 979 --- ChangeLog | 2 +- src/ejabberdctl.template | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index a53256775..c6a2b8e61 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,6 +1,6 @@ 2007-11-26 Badlop - * src/ejabberdctl.template: Removed bashisms (EJAB-399). Set environment variables instead of passing parameters when calling erl (EJAB-421). + * src/ejabberdctl.template: Removed bashisms (EJAB-399). Set environment variables instead of passing parameters when calling erl (EJAB-421). Write erl_crash.dump in the log/ directory, with unique filename (EJAB-433). * src/ejabberd_ctl.erl: Improvements in the help messages (EJAB-399). diff --git a/src/ejabberdctl.template b/src/ejabberdctl.template index cbc41900e..49e17eb94 100644 --- a/src/ejabberdctl.template +++ b/src/ejabberdctl.template @@ -17,6 +17,9 @@ EJABBERD_SO_PATH=$ROOTDIR/var/lib/ejabberd/priv/lib EJABBERD_LOG_PATH=$ROOTDIR/var/log/ejabberd/ejabberd.log export EJABBERD_LOG_PATH SASL_LOG_PATH=$ROOTDIR/var/log/ejabberd/sasl.log +DATETIME=`date "+%Y%m%d-%H%M%S"` +ERL_CRASH_DUMP=$ROOTDIR/var/log/ejabberd/erl_crash.dump.$DATETIME +export ERL_CRASH_DUMP [ -d $EJABBERD_DB ] || mkdir -p $EJABBERD_DB