[svn-commits] wdoekes: branch 1.8 r415521 - /branches/1.8/contrib/scripts/safe_asterisk

SVN commits to the Digium repositories svn-commits at lists.digium.com
Mon Jun 9 06:59:42 CDT 2014


Author: wdoekes
Date: Mon Jun  9 06:55:16 2014
New Revision: 415521

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=415521
Log:
safe_asterisk: Cleanup additions to r415132.

Replaced a stray echo that should've been a message call in
safe_asterisk. I'm using the contents of the old message inside the
if $NOTIFY so peoples log parsing scripts won't get confused by new
messages. I'll clean that up in trunk.

(Note that a 'make install' still won't overwrite your old safe_asterisk
if it exists. See ASTERISK-21965.)

ASTERISK-23492 #close

Modified:
    branches/1.8/contrib/scripts/safe_asterisk

Modified: branches/1.8/contrib/scripts/safe_asterisk
URL: http://svnview.digium.com/svn/asterisk/branches/1.8/contrib/scripts/safe_asterisk?view=diff&rev=415521&r1=415520&r2=415521
==============================================================================
--- branches/1.8/contrib/scripts/safe_asterisk (original)
+++ branches/1.8/contrib/scripts/safe_asterisk Mon Jun  9 06:55:16 2014
@@ -161,11 +161,10 @@
 			exit 0
 		elif test $EXITSTATUS -gt 128; then
 			EXITSIGNAL=$((EXITSTATUS - 128))
-			echo "Asterisk exited on signal $EXITSIGNAL."
+			message "Exited on signal $EXITSIGNAL"
 			if test -n "$NOTIFY"; then
 				echo "Asterisk on $MACHINE exited on signal $EXITSIGNAL.  Might want to take a peek." | \
 				mail -s "Asterisk Died" $NOTIFY
-				message "Exited on signal $EXITSIGNAL"
 			fi
 			if test -n "$EXEC"; then
 				$EXEC




More information about the svn-commits mailing list