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


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.8@415521 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
Walter Doekes
2014-06-09 11:55:16 +00:00
parent 1dff17f051
commit ef59e04d6c

View File

@@ -161,11 +161,10 @@ run_asterisk()
exit 0 exit 0
elif test $EXITSTATUS -gt 128; then elif test $EXITSTATUS -gt 128; then
EXITSIGNAL=$((EXITSTATUS - 128)) EXITSIGNAL=$((EXITSTATUS - 128))
echo "Asterisk exited on signal $EXITSIGNAL." message "Exited on signal $EXITSIGNAL"
if test -n "$NOTIFY"; then if test -n "$NOTIFY"; then
echo "Asterisk on $MACHINE 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 mail -s "Asterisk Died" $NOTIFY
message "Exited on signal $EXITSIGNAL"
fi fi
if test -n "$EXEC"; then if test -n "$EXEC"; then
$EXEC $EXEC