]> granicus.if.org Git - ejabberd/commitdiff
* src/ejabberdctl.template: Write erl_crash.dump in the log/ directory, with unique...
authorBadlop <badlop@process-one.net>
Mon, 26 Nov 2007 08:57:21 +0000 (08:57 +0000)
committerBadlop <badlop@process-one.net>
Mon, 26 Nov 2007 08:57:21 +0000 (08:57 +0000)
SVN Revision: 979

ChangeLog
src/ejabberdctl.template

index a532567757e19b546f232e3b4dd5a7135b271853..c6a2b8e619b92606e29a8551fca03138bfe8daaa 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,6 +1,6 @@
 2007-11-26  Badlop  <badlop@process-one.net>
 
-       * 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).
 
index cbc41900e95d1f150648bb51f59788afa228cca8..49e17eb949f07407d6561da766c9861a829fb362 100644 (file)
@@ -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