If you run mysql.server, and have a user set in the my.cnf file ( and
you should )
the server aborts under the following conditions.
If the error log is not there, or is owned by root, safe_mysqld will
write to it
and attempt to start mysqld.
Mysqld will switch users, and be unable to log.
This is the diff file for my patch to safe_mysqld.
*** safe_mysqld.old Tue Jun 13 07:39:08 2000
--- safe_mysqld Tue Jun 13 07:02:00 2000
***************
*** 35,40 ****
--- 35,43 ----
--log=*)
err_log=`echo "$arg" | sed -e "s;--log=;;"`
;;
+ --user=*)
+ user=`echo "$arg" | sed -e "s;--user=;;"`
+ ;;
esac
done
}
***************
*** 93,98 ****
--- 96,102 ----
pid_file=${pid_file:=$DATADIR/`/bin/hostname`.pid}
err_log=${err_log:=$DATADIR/`/bin/hostname`.err}
+ touch $err_log ; chown $user $err_log
#
# If there exists an old pid file, check if the daemon is already
running