The patch I submitted last night to safe_asterisk was not NFS safe. This patch fixes the problem. -BAK -- Ben Klang, KF4WBX ben at alkaloid.net -------------- next part -------------- --- loop/usr/sbin/safe_asterisk Sat Feb 15 17:11:52 2003 +++ loop2/usr/sbin/safe_asterisk Sun Feb 16 15:46:05 2003 @@ -1,8 +1,8 @@ #!/bin/sh TTY=9 # TTY (if you want one) for Asterisk to run on CONSOLE=yes # Whether or not you want a console NOTIFY= # Who to notify about crashes -DUMPDROP=/tmp +DUMPDROP=/var/tombstones # # Don't fork when running "safely" # @@ -40,11 +40,11 @@ while :; do if [ "$TTY" != "" ]; then - cd ${DUMPDROP} + cd /tmp stty sane < /dev/${TTY} asterisk ${ASTARGS} >& /dev/${TTY} < /dev/${TTY} else - cd ${DUMPDROP} + cd /tmp asterisk ${ASTARGS} fi EXITSTATUS=$? @@ -60,13 +60,13 @@ echo "Asterisk exited on signal $EXITSIGNAL. Might want to take a peek." | \ mail -s "Asterisk Died" $NOTIFY fi - if [ -f ${DUMPDROP}/core ]; then - mv /${DUMPDROP}/core ${DUMPDROP}/core.`hostname`-`date -Iseconds` + if [ -f /tmp/core ]; then + mv /tmp/core ${DUMPDROP}/core.`hostname`-`date -Iseconds` & fi else echo "Asterisk died with code $EXITSTATUS. Aborting." - if [ -f ${DUMPDROP}/core ]; then - mv ${DUMPDROP}/core ${DUMPDROP}/core.`hostname`-`date -Iseconds` + if [ -f /tmp/core ]; then + mv /tmp/core ${DUMPDROP}/core.`hostname`-`date -Iseconds` & fi exit 0 fi -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 232 bytes Desc: This is a digitally signed message part URL: <http://lists.digium.com/pipermail/asterisk-users/attachments/20030216/98260419/attachment-0001.pgp>