err-log option has been renamed to log-error, fix my.cnf and initscript
This commit is contained in:
parent
48cc9c7544
commit
cafb0a92ae
2
my.cnf
2
my.cnf
@ -10,5 +10,5 @@ user=mysql
|
|||||||
basedir=/var/lib
|
basedir=/var/lib
|
||||||
|
|
||||||
[mysqld_safe]
|
[mysqld_safe]
|
||||||
err-log=/var/log/mysqld.log
|
log-error=/var/log/mysqld.log
|
||||||
pid-file=/var/run/mysqld/mysqld.pid
|
pid-file=/var/run/mysqld/mysqld.pid
|
||||||
|
@ -47,7 +47,7 @@ get_mysql_option /etc/my.cnf datadir "/var/lib/mysql"
|
|||||||
datadir="$result"
|
datadir="$result"
|
||||||
get_mysql_option /etc/my.cnf socket "$datadir/mysql.sock"
|
get_mysql_option /etc/my.cnf socket "$datadir/mysql.sock"
|
||||||
socketfile="$result"
|
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"
|
errlogfile="$result"
|
||||||
get_mysql_option /etc/my.cnf pid-file "/var/run/mysqld/mysqld.pid"
|
get_mysql_option /etc/my.cnf pid-file "/var/run/mysqld/mysqld.pid"
|
||||||
mypidfile="$result"
|
mypidfile="$result"
|
||||||
@ -69,8 +69,9 @@ start(){
|
|||||||
chmod 0755 "$datadir"
|
chmod 0755 "$datadir"
|
||||||
# The reason for explicitly specifying --pid-file is that there may
|
# 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
|
# be no such entry in my.cnf, and the default behavior will be to not
|
||||||
# create it at all...
|
# create it at all. Likewise, we specify --log-error in case there
|
||||||
/usr/bin/mysqld_safe --defaults-file=/etc/my.cnf --pid-file="$mypidfile" >/dev/null 2>&1 &
|
# 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=$?
|
ret=$?
|
||||||
# Spin for a maximum of N seconds waiting for the server to come up.
|
# 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
|
# Rather than assuming we know a valid username, accept an "access
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
Name: mysql
|
Name: mysql
|
||||||
Version: 5.0.18
|
Version: 5.0.18
|
||||||
Release: 1.1
|
Release: 2
|
||||||
Summary: MySQL client programs and shared libraries.
|
Summary: MySQL client programs and shared libraries.
|
||||||
License: GPL
|
License: GPL
|
||||||
Group: Applications/Databases
|
Group: Applications/Databases
|
||||||
@ -380,6 +380,9 @@ fi
|
|||||||
%{_datadir}/sql-bench
|
%{_datadir}/sql-bench
|
||||||
|
|
||||||
%changelog
|
%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
|
* Tue Feb 07 2006 Jesse Keating <jkeating@redhat.com> - 5.0.18-1.1
|
||||||
- rebuilt for new gcc4.1 snapshot and glibc changes
|
- rebuilt for new gcc4.1 snapshot and glibc changes
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user