summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
4efa995)
mv /tmp/core ${DUMPDROP}/core.`hostname`-`date -Iseconds` &
fi
else
mv /tmp/core ${DUMPDROP}/core.`hostname`-`date -Iseconds` &
fi
else
- echo "Asterisk died with code $EXITSTATUS. Aborting."
- if [ -f /tmp/core ]; then
- mv /tmp/core ${DUMPDROP}/core.`hostname`-`date -Iseconds` &
+ if [ "${EXITSTATUS}" = "0" ]; then
+ echo "Asterisk ended normally. Aborting."
+ exit 0
+ else
+ echo "Asterisk died with code $EXITSTATUS."
+ if [ -f /tmp/core ]; then
+ mv /tmp/core ${DUMPDROP}/core.`hostname`-`date -Iseconds` &
+ fi
fi
echo "Automatically restarting Asterisk."
fi
echo "Automatically restarting Asterisk."