Blame SOURCES/mysql-default-logdir.patch

489963
When log file is removed, mysqld_safe only starts when it is sure the mysqld
489963
can create the log file, so we need to add the default log dir into set of
489963
known directories.
489963
489963
rhbz#1482122
489963
489963
diff -up mysql-5.6.37/scripts/mysqld_safe.sh.logdir mysql-5.6.37/scripts/mysqld_safe.sh
489963
--- mysql-5.6.37/scripts/mysqld_safe.sh.logdir	2017-06-02 19:42:10.000000000 +0200
489963
+++ mysql-5.6.37/scripts/mysqld_safe.sh	2017-08-16 21:21:59.687608613 +0200
489963
@@ -644,9 +644,10 @@ if [ $logging = "file" -o $logging = "bo
489963
   elif [ "x$user" = "xroot" ]; then # running as root, mysqld can create log file; continue
489963
     echo "Logging to '$err_log'." >&2
489963
   else
489963
+    default_log_dir=`dirname "@LOG_LOCATION@"`
489963
     case $logdir in
489963
       # We can't create $err_log, however mysqld can; continue
489963
-      /tmp|/var/tmp|/var/log/mysql|$DATADIR)
489963
+      /tmp|/var/tmp|$default_log_dir|$DATADIR)
489963
         echo "Logging to '$err_log'." >&2
489963
         ;;
489963
       # We can't create $err_log and don't know if mysqld can; error out