[Asterisk-cvs] asterisk/contrib/scripts safe_asterisk,1.7,1.8
markster at lists.digium.com
markster at lists.digium.com
Wed Dec 1 00:11:54 CST 2004
Update of /usr/cvsroot/asterisk/contrib/scripts
In directory mongoose.digium.com:/tmp/cvs-serv5730/contrib/scripts
Modified Files:
safe_asterisk
Log Message:
Specify hostname if there is a crash (bug #2958)
Index: safe_asterisk
===================================================================
RCS file: /usr/cvsroot/asterisk/contrib/scripts/safe_asterisk,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -d -r1.7 -r1.8
--- safe_asterisk 25 Jul 2004 23:12:33 -0000 1.7
+++ safe_asterisk 1 Dec 2004 05:10:32 -0000 1.8
@@ -3,6 +3,7 @@
TTY=9 # TTY (if you want one) for Asterisk to run on
CONSOLE=yes # Whether or not you want a console
#NOTIFY=ben at alkaloid.net # Who to notify about crashes
+MACHINE=`hostname` # To specify which machine has crashed when getting the mail
DUMPDROP=/tmp
#
# Don't fork when running "safely"
@@ -58,7 +59,7 @@
let EXITSIGNAL=EXITSTATUS-128
echo "Asterisk exited on signal $EXITSIGNAL."
if [ "$NOTIFY" != "" ]; then
- echo "Asterisk exited on signal $EXITSIGNAL. Might want to take a peek." | \
+ echo "Asterisk on $MACHINE exited on signal $EXITSIGNAL. Might want to take a peek." | \
mail -s "Asterisk Died" $NOTIFY
fi
if [ -f /tmp/core ]; then
More information about the svn-commits
mailing list