Better syslog error messages; messages actually go to pre-start log file
@@ -57,9 +57,10 @@ if [[ -e /etc/rsyslog.d/01-mysql.conf ]]; then
let attempts=attempts+1
if [ ${attempts} -ge 10 ]; then
- echo "Unable to restart rsyslog"
+ echo "Unable to restart rsyslog" >> "${LOG_FILE}"
exit 1
fi
+ echo "Failed restarting rsyslog; Attempt ${attempts} of 10" >> "${LOG_FILE}"
sleep 5
/usr/sbin/service rsyslog restart
