diff options
author | markster <markster@f38db490-d61c-443f-a65b-d21fe96a405b> | 2004-12-01 05:10:32 +0000 |
---|---|---|
committer | markster <markster@f38db490-d61c-443f-a65b-d21fe96a405b> | 2004-12-01 05:10:32 +0000 |
commit | 35ac110f0e4a02a1081a174712c3a5a762671de5 (patch) | |
tree | 0477352940b3d4445c5b5832624e62b9a433cd89 /contrib | |
parent | 88785e2e5ce787bdf7b5f0b79afa0caf61c1dbce (diff) |
Specify hostname if there is a crash (bug #2958)
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@4364 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'contrib')
-rwxr-xr-x | contrib/scripts/safe_asterisk | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/contrib/scripts/safe_asterisk b/contrib/scripts/safe_asterisk index 56a8d36c3..78013c9a0 100755 --- a/contrib/scripts/safe_asterisk +++ b/contrib/scripts/safe_asterisk @@ -3,6 +3,7 @@ CLIARGS="$*" # Grab any args passed to safe_asterisk TTY=9 # TTY (if you want one) for Asterisk to run on CONSOLE=yes # Whether or not you want a console #NOTIFY=ben@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 @@ run_asterisk() 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 |