err-log option has been renamed to log-error, fix my.cnf and initscript

This commit is contained in:
Tom Lane 2006-02-09 21:25:10 +00:00 committed by Michal Schorm
parent 48cc9c7544
commit cafb0a92ae
3 changed files with 9 additions and 5 deletions

2
my.cnf
View File

@ -10,5 +10,5 @@ user=mysql
basedir=/var/lib
[mysqld_safe]
err-log=/var/log/mysqld.log
log-error=/var/log/mysqld.log
pid-file=/var/run/mysqld/mysqld.pid

View File

@ -47,7 +47,7 @@ get_mysql_option /etc/my.cnf datadir "/var/lib/mysql"
datadir="$result"
get_mysql_option /etc/my.cnf socket "$datadir/mysql.sock"
socketfile="$result"
get_mysql_option /etc/my.cnf err-log "/var/log/mysqld.log"
get_mysql_option /etc/my.cnf log-error "/var/log/mysqld.log"
errlogfile="$result"
get_mysql_option /etc/my.cnf pid-file "/var/run/mysqld/mysqld.pid"
mypidfile="$result"
@ -69,8 +69,9 @@ start(){
chmod 0755 "$datadir"
# The reason for explicitly specifying --pid-file is that there may
# be no such entry in my.cnf, and the default behavior will be to not
# create it at all...
/usr/bin/mysqld_safe --defaults-file=/etc/my.cnf --pid-file="$mypidfile" >/dev/null 2>&1 &
# create it at all. Likewise, we specify --log-error in case there
# was not an entry in my.cnf.
/usr/bin/mysqld_safe --defaults-file=/etc/my.cnf --pid-file="$mypidfile" --log-error="$errlogfile" >/dev/null 2>&1 &
ret=$?
# Spin for a maximum of N seconds waiting for the server to come up.
# Rather than assuming we know a valid username, accept an "access

View File

@ -1,6 +1,6 @@
Name: mysql
Version: 5.0.18
Release: 1.1
Release: 2
Summary: MySQL client programs and shared libraries.
License: GPL
Group: Applications/Databases
@ -380,6 +380,9 @@ fi
%{_datadir}/sql-bench
%changelog
* Thu Feb 9 2006 Tom Lane <tgl@redhat.com> 5.0.18-2
- err-log option has been renamed to log-error, fix my.cnf and initscript
* Tue Feb 07 2006 Jesse Keating <jkeating@redhat.com> - 5.0.18-1.1
- rebuilt for new gcc4.1 snapshot and glibc changes