Sun Jan 21 2001 Trond Eivind Glomsrød <teg@redhat.com>
- 3.23.32
- fix logrotate script, so it doesn't return "false" if mysqld isn't
running (#24589)
Thu Jan 18 2001 Trond Eivind Glomsrød <teg@redhat.com>
- 3.23.31
Wed Jan 17 2001 Trond Eivind Glomsrød <teg@redhat.com>
- move the items in Requires(post): to Requires: in preparation for an
errata for 7.0 when 3.23.31 is released
Tue Jan 16 2001 Trond Eivind Glomsrød <teg@redhat.com>
- add the log file to the rpm database, and make it 0640 (#24116)
- as above in logrotate script
- changes to the init sequence - put most of the data in /etc/my.cnf
instead of hardcoding in the init script
- use /var/run/mysqld/mysqld.pid instead of /var/run/mysqld/pid
- use standard safe_mysqld
- shut down cleaner
Mon Jan 08 2001 Trond Eivind Glomsrød <teg@redhat.com>
- 3.23.30
- do an explicit chmod on /var/lib/mysql in post, to avoid any problems
with broken permissons. There is a report of rm not changing this on
its own (#22989)
Mon Jan 01 2001 Trond Eivind Glomsrød <teg@redhat.com>
- bzipped source
- changed from 85 to 78 in startup, so it starts before apache (which can
use modules requiring mysql)
Wed Dec 27 2000 Trond Eivind Glomsrød <teg@redhat.com>
- 3.23.29a
Tue Dec 19 2000 Trond Eivind Glomsrød <teg@redhat.com>
- add requirement for new libstdc++, build for errata
Mon Dec 18 2000 Trond Eivind Glomsrød <teg@redhat.com>
- 3.23.29
Mon Nov 27 2000 Trond Eivind Glomsrød <teg@redhat.com>
- 3.23.28 (gamma)
- remove old patches, as they are now upstreamed
Tue Nov 14 2000 Trond Eivind Glomsrød <teg@redhat.com>
- Add a requirement for a new glibc (#20735)
- build on IA64
Wed Nov 01 2000 Trond Eivind Glomsrød <teg@redhat.com>
- disable more assembly
Wed Nov 01 2000 Jakub Jelinek <jakub@redhat.com>
- fix mysql on SPARC (#20124)
Tue Oct 31 2000 Trond Eivind Glomsrød <teg@redhat.com>
- 3.23.27
Wed Oct 25 2000 Trond Eivind Glomsrød <teg@redhat.com>
- add patch for fixing bogus aliasing in mysql from Jakub, which should fix
#18905 and #18620
Mon Oct 23 2000 Trond Eivind Glomsrød <teg@redhat.com>
- check for negative niceness values, and negate it if present (#17899)
- redefine optflags on IA32 FTTB
97 lines
1.9 KiB
Bash
97 lines
1.9 KiB
Bash
#!/bin/sh
|
|
#
|
|
# mysqld This shell script takes care of starting and stopping
|
|
# the MySQL subsystem (mysqld).
|
|
#
|
|
# chkconfig: - 78 12
|
|
# description: MySQL database server.
|
|
# processname: mysqld
|
|
# config: /etc/my.cnf
|
|
# pidfile: /var/run/mysqld/mysqld.pid
|
|
|
|
# Source function library.
|
|
. /etc/rc.d/init.d/functions
|
|
|
|
# Source networking configuration.
|
|
. /etc/sysconfig/network
|
|
|
|
# Source subsystem configuration.
|
|
[ -f /etc/sysconfig/subsys/mysqld ] && . /etc/sysconfig/subsys/mysqld
|
|
|
|
start(){
|
|
touch /var/log/mysqld.log
|
|
chown mysql.mysql /var/log/mysqld.log
|
|
chmod 0640 /var/log/mysqld.log
|
|
if [ ! -d /var/lib/mysql/mysql ] ; then
|
|
action "Initializing MySQL database" /usr/bin/mysql_install_db
|
|
ret=$?
|
|
chown -R mysql.mysql /var/lib/mysql
|
|
if [ $ret -ne 0 ] ; then
|
|
return $ret
|
|
fi
|
|
fi
|
|
/usr/bin/safe_mysqld --defaults-file=/etc/my.cnf >/dev/null 2>&1 &
|
|
ret=$?
|
|
if [ $ret -eq 0 ]; then
|
|
action "Starting MySQL: " /bin/true
|
|
else
|
|
action "Starting MySQL: " /bin/false
|
|
fi
|
|
[ $ret -eq 0 ] && touch /var/lock/subsys/mysqld
|
|
return $ret
|
|
}
|
|
|
|
stop(){
|
|
/usr/bin/mysqladmin shutdown > /dev/null 2>&1
|
|
ret=$?
|
|
if [ $ret -eq 0 ]; then
|
|
action "Stopping MySQL: " /bin/true
|
|
else
|
|
action "Stopping MySQL: " /bin/false
|
|
fi
|
|
ret=$?
|
|
[ $ret -eq 0 ] && rm -f /var/lock/subsys/mysqld
|
|
[ $ret -eq 0 ] && rm -f /var/lib/mysql/mysql.sock
|
|
return $ret
|
|
}
|
|
|
|
restart(){
|
|
stop
|
|
start
|
|
}
|
|
|
|
condrestart(){
|
|
[ -e /var/lock/subsys/mysqld ] && restart || :
|
|
}
|
|
|
|
reload(){
|
|
[ -e /var/lock/subsys/mysqld ] && mysqladmin reload
|
|
}
|
|
|
|
# See how we were called.
|
|
case "$1" in
|
|
start)
|
|
start
|
|
;;
|
|
stop)
|
|
stop
|
|
;;
|
|
status)
|
|
status mysqld
|
|
;;
|
|
reload)
|
|
reload
|
|
;;
|
|
restart)
|
|
restart
|
|
;;
|
|
condrestart)
|
|
condrestart
|
|
;;
|
|
*)
|
|
echo "Usage: $0 {start|stop|status|reload|condrestart|restart}"
|
|
exit 1
|
|
esac
|
|
|
|
exit $?
|