diff options
author | qwell <qwell@f38db490-d61c-443f-a65b-d21fe96a405b> | 2008-02-12 22:22:54 +0000 |
---|---|---|
committer | qwell <qwell@f38db490-d61c-443f-a65b-d21fe96a405b> | 2008-02-12 22:22:54 +0000 |
commit | 47161f4d924d5a920a36e11c970f8bdf4cb263fe (patch) | |
tree | 359630c41414ce931e39560d7a0569ea8f890335 /contrib | |
parent | c667b2c829882669342d51369991f75da48568af (diff) |
Remove condition that was impossible.
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@103503 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'contrib')
-rw-r--r-- | contrib/scripts/safe_asterisk | 19 |
1 files changed, 7 insertions, 12 deletions
diff --git a/contrib/scripts/safe_asterisk b/contrib/scripts/safe_asterisk index 54d36df60..14d9b35ec 100644 --- a/contrib/scripts/safe_asterisk +++ b/contrib/scripts/safe_asterisk @@ -149,18 +149,13 @@ run_asterisk() mv /tmp/core ${DUMPDROP}/core.`hostname`-`date -Iseconds` & fi else - if [ "${EXITSTATUS}" = "0" ]; then - echo "Asterisk ended normally. Aborting." - exit 0 - else - echo "Asterisk died with code $EXITSTATUS." - - PID=`cat ${ASTPIDFILE}` - if [ -f /tmp/core.${PID} ]; then - mv /tmp/core.${PID} ${DUMPDROP}/core.`hostname`-`date -Iseconds` & - elif [ -f /tmp/core ]; then - mv /tmp/core ${DUMPDROP}/core.`hostname`-`date -Iseconds` & - fi + echo "Asterisk died with code $EXITSTATUS." + + PID=`cat ${ASTPIDFILE}` + if [ -f /tmp/core.${PID} ]; then + mv /tmp/core.${PID} ${DUMPDROP}/core.`hostname`-`date -Iseconds` & + elif [ -f /tmp/core ]; then + mv /tmp/core ${DUMPDROP}/core.`hostname`-`date -Iseconds` & fi fi echo "Automatically restarting Asterisk." |