2004-09-09 08:54:46 +00:00
|
|
|
#!/bin/bash
|
auto-import changelog data from mysql-3.23.22-6.src.rpm
Sun Aug 27 2000 Trond Eivind Glomsrød <teg@redhat.com>
- Add "|| :" to condrestart to avoid non-zero exit code
Thu Aug 24 2000 Trond Eivind Glomsrød <teg@redhat.com>
- it's mysql.com, not mysql.org and use correct path to source (#16830)
Wed Aug 16 2000 Trond Eivind Glomsrød <teg@redhat.com>
- source file from /etc/rc.d, not /etc/rd.d. Doh.
Sun Aug 13 2000 Trond Eivind Glomsrød <teg@redhat.com>
- don't run ldconfig -n, it doesn't update ld.so.cache (#16034)
- include some missing binaries
- use safe_mysqld to start the server (request from mysql developers)
Sat Aug 05 2000 Bill Nottingham <notting@redhat.com>
- condrestart fixes
Tue Aug 01 2000 Trond Eivind Glomsrød <teg@redhat.com>
- 3.23.22. Disable the old patches, they're now in.
Thu Jul 27 2000 Trond Eivind Glomsrød <teg@redhat.com>
- bugfixes in the initscript
- move the .so link to the devel package
Wed Jul 19 2000 Trond Eivind Glomsrød <teg@redhat.com>
- rebuild due to glibc changes
Tue Jul 18 2000 Trond Eivind Glomsrød <teg@redhat.com>
- disable compiler patch
- don't include info directory file
Mon Jul 17 2000 Trond Eivind Glomsrød <teg@redhat.com>
- move back to /etc/rc.d/init.d
Fri Jul 14 2000 Trond Eivind Glomsrød <teg@redhat.com>
- more cleanups in initscript
Thu Jul 13 2000 Trond Eivind Glomsrød <teg@redhat.com>
- add a patch to work around compiler bug (from monty@mysql.com)
Wed Jul 12 2000 Trond Eivind Glomsrød <teg@redhat.com>
- don't build the SQL daemon statically (glibc problems)
- fix the logrotate script - only flush log if mysql is running
- change the reloading procedure
- remove icon - glint is obsolete a long time ago
Wed Jul 12 2000 Prospector <bugzilla@redhat.com>
- automatic rebuild
Mon Jul 10 2000 Trond Eivind Glomsrød <teg@redhat.com>
- try the new compiler again
- build the SQL daemon statically
- add compile time support for complex charsets
- enable assembler
- more cleanups in initscript
Sun Jul 09 2000 Trond Eivind Glomsrød <teg@redhat.com>
- use old C++ compiler
- Exclusivearch x86
Sat Jul 08 2000 Trond Eivind Glomsrød <teg@redhat.com>
- move .so files to devel package
- more cleanups
- exclude sparc for now
Wed Jul 05 2000 Trond Eivind Glomsrød <teg@redhat.com>
- 3.23.21
- remove file from /etc/sysconfig
- Fix initscript a bit - initialization of databases doesn't work yet
- specify the correct licenses
- include a /etc/my.conf (empty, FTTB)
- add conditional restart to spec file
Sun Jul 02 2000 Jakub Jelinek <jakub@redhat.com>
- Rebuild with new C++
Fri Jun 30 2000 Trond Eivind Glomsrød <teg@redhat.com>
- update to 3.23.20
- use %configure, %makeinstall, %{_tmppath}, %{_mandir}, %{_infodir},
/etc/init.d
- remove the bench package
- change some of the descriptions a little bit
- fix the init script
- some compile fixes
- specify mysql user
- use mysql uid 27 (postgresql is 26)
- don't build on ia64
Sat Feb 26 2000 Jos Vos <jos@xos.nl>
- Version 3.22.32 release XOS.1 for LinuX/OS 1.8.0
- Upgrade from version 3.22.27 to 3.22.32.
- Do "make install" instead of "make install-strip", because "install -s"
now appears to fail on various scripts. Afterwards, strip manually.
- Reorganize subpackages, according to common Red Hat packages: the client
program and shared library become the base package and the server and
some accompanying files are now in a separate server package. The
server package implicitly requires the base package (shared library),
but we have added a manual require tag anyway (because of the shared
config file, and more).
- Rename the mysql-benchmark subpackage to mysql-bench.
Mon Jan 31 2000 Jos Vos <jos@xos.nl>
- Version 3.22.27 release XOS.2 for LinuX/OS 1.7.1
- Add post(un)install scripts for updating ld.so.conf (client subpackage).
Sun Nov 21 1999 Jos Vos <jos@xos.nl>
- Version 3.22.27 release XOS.1 for LinuX/OS 1.7.0
- Initial version.
- Some ideas borrowed from Red Hat Powertools 6.1, although this spec file
is a full rewrite from scratch.
2004-09-09 08:53:43 +00:00
|
|
|
#
|
|
|
|
# mysqld This shell script takes care of starting and stopping
|
|
|
|
# the MySQL subsystem (mysqld).
|
|
|
|
#
|
2004-10-06 18:05:45 +00:00
|
|
|
# chkconfig: - 64 36
|
auto-import changelog data from mysql-3.23.22-6.src.rpm
Sun Aug 27 2000 Trond Eivind Glomsrød <teg@redhat.com>
- Add "|| :" to condrestart to avoid non-zero exit code
Thu Aug 24 2000 Trond Eivind Glomsrød <teg@redhat.com>
- it's mysql.com, not mysql.org and use correct path to source (#16830)
Wed Aug 16 2000 Trond Eivind Glomsrød <teg@redhat.com>
- source file from /etc/rc.d, not /etc/rd.d. Doh.
Sun Aug 13 2000 Trond Eivind Glomsrød <teg@redhat.com>
- don't run ldconfig -n, it doesn't update ld.so.cache (#16034)
- include some missing binaries
- use safe_mysqld to start the server (request from mysql developers)
Sat Aug 05 2000 Bill Nottingham <notting@redhat.com>
- condrestart fixes
Tue Aug 01 2000 Trond Eivind Glomsrød <teg@redhat.com>
- 3.23.22. Disable the old patches, they're now in.
Thu Jul 27 2000 Trond Eivind Glomsrød <teg@redhat.com>
- bugfixes in the initscript
- move the .so link to the devel package
Wed Jul 19 2000 Trond Eivind Glomsrød <teg@redhat.com>
- rebuild due to glibc changes
Tue Jul 18 2000 Trond Eivind Glomsrød <teg@redhat.com>
- disable compiler patch
- don't include info directory file
Mon Jul 17 2000 Trond Eivind Glomsrød <teg@redhat.com>
- move back to /etc/rc.d/init.d
Fri Jul 14 2000 Trond Eivind Glomsrød <teg@redhat.com>
- more cleanups in initscript
Thu Jul 13 2000 Trond Eivind Glomsrød <teg@redhat.com>
- add a patch to work around compiler bug (from monty@mysql.com)
Wed Jul 12 2000 Trond Eivind Glomsrød <teg@redhat.com>
- don't build the SQL daemon statically (glibc problems)
- fix the logrotate script - only flush log if mysql is running
- change the reloading procedure
- remove icon - glint is obsolete a long time ago
Wed Jul 12 2000 Prospector <bugzilla@redhat.com>
- automatic rebuild
Mon Jul 10 2000 Trond Eivind Glomsrød <teg@redhat.com>
- try the new compiler again
- build the SQL daemon statically
- add compile time support for complex charsets
- enable assembler
- more cleanups in initscript
Sun Jul 09 2000 Trond Eivind Glomsrød <teg@redhat.com>
- use old C++ compiler
- Exclusivearch x86
Sat Jul 08 2000 Trond Eivind Glomsrød <teg@redhat.com>
- move .so files to devel package
- more cleanups
- exclude sparc for now
Wed Jul 05 2000 Trond Eivind Glomsrød <teg@redhat.com>
- 3.23.21
- remove file from /etc/sysconfig
- Fix initscript a bit - initialization of databases doesn't work yet
- specify the correct licenses
- include a /etc/my.conf (empty, FTTB)
- add conditional restart to spec file
Sun Jul 02 2000 Jakub Jelinek <jakub@redhat.com>
- Rebuild with new C++
Fri Jun 30 2000 Trond Eivind Glomsrød <teg@redhat.com>
- update to 3.23.20
- use %configure, %makeinstall, %{_tmppath}, %{_mandir}, %{_infodir},
/etc/init.d
- remove the bench package
- change some of the descriptions a little bit
- fix the init script
- some compile fixes
- specify mysql user
- use mysql uid 27 (postgresql is 26)
- don't build on ia64
Sat Feb 26 2000 Jos Vos <jos@xos.nl>
- Version 3.22.32 release XOS.1 for LinuX/OS 1.8.0
- Upgrade from version 3.22.27 to 3.22.32.
- Do "make install" instead of "make install-strip", because "install -s"
now appears to fail on various scripts. Afterwards, strip manually.
- Reorganize subpackages, according to common Red Hat packages: the client
program and shared library become the base package and the server and
some accompanying files are now in a separate server package. The
server package implicitly requires the base package (shared library),
but we have added a manual require tag anyway (because of the shared
config file, and more).
- Rename the mysql-benchmark subpackage to mysql-bench.
Mon Jan 31 2000 Jos Vos <jos@xos.nl>
- Version 3.22.27 release XOS.2 for LinuX/OS 1.7.1
- Add post(un)install scripts for updating ld.so.conf (client subpackage).
Sun Nov 21 1999 Jos Vos <jos@xos.nl>
- Version 3.22.27 release XOS.1 for LinuX/OS 1.7.0
- Initial version.
- Some ideas borrowed from Red Hat Powertools 6.1, although this spec file
is a full rewrite from scratch.
2004-09-09 08:53:43 +00:00
|
|
|
# description: MySQL database server.
|
|
|
|
# processname: mysqld
|
2004-09-09 08:53:49 +00:00
|
|
|
# config: /etc/my.cnf
|
2004-09-09 08:54:34 +00:00
|
|
|
# pidfile: /var/run/mysqld/mysqld.pid
|
auto-import changelog data from mysql-3.23.22-6.src.rpm
Sun Aug 27 2000 Trond Eivind Glomsrød <teg@redhat.com>
- Add "|| :" to condrestart to avoid non-zero exit code
Thu Aug 24 2000 Trond Eivind Glomsrød <teg@redhat.com>
- it's mysql.com, not mysql.org and use correct path to source (#16830)
Wed Aug 16 2000 Trond Eivind Glomsrød <teg@redhat.com>
- source file from /etc/rc.d, not /etc/rd.d. Doh.
Sun Aug 13 2000 Trond Eivind Glomsrød <teg@redhat.com>
- don't run ldconfig -n, it doesn't update ld.so.cache (#16034)
- include some missing binaries
- use safe_mysqld to start the server (request from mysql developers)
Sat Aug 05 2000 Bill Nottingham <notting@redhat.com>
- condrestart fixes
Tue Aug 01 2000 Trond Eivind Glomsrød <teg@redhat.com>
- 3.23.22. Disable the old patches, they're now in.
Thu Jul 27 2000 Trond Eivind Glomsrød <teg@redhat.com>
- bugfixes in the initscript
- move the .so link to the devel package
Wed Jul 19 2000 Trond Eivind Glomsrød <teg@redhat.com>
- rebuild due to glibc changes
Tue Jul 18 2000 Trond Eivind Glomsrød <teg@redhat.com>
- disable compiler patch
- don't include info directory file
Mon Jul 17 2000 Trond Eivind Glomsrød <teg@redhat.com>
- move back to /etc/rc.d/init.d
Fri Jul 14 2000 Trond Eivind Glomsrød <teg@redhat.com>
- more cleanups in initscript
Thu Jul 13 2000 Trond Eivind Glomsrød <teg@redhat.com>
- add a patch to work around compiler bug (from monty@mysql.com)
Wed Jul 12 2000 Trond Eivind Glomsrød <teg@redhat.com>
- don't build the SQL daemon statically (glibc problems)
- fix the logrotate script - only flush log if mysql is running
- change the reloading procedure
- remove icon - glint is obsolete a long time ago
Wed Jul 12 2000 Prospector <bugzilla@redhat.com>
- automatic rebuild
Mon Jul 10 2000 Trond Eivind Glomsrød <teg@redhat.com>
- try the new compiler again
- build the SQL daemon statically
- add compile time support for complex charsets
- enable assembler
- more cleanups in initscript
Sun Jul 09 2000 Trond Eivind Glomsrød <teg@redhat.com>
- use old C++ compiler
- Exclusivearch x86
Sat Jul 08 2000 Trond Eivind Glomsrød <teg@redhat.com>
- move .so files to devel package
- more cleanups
- exclude sparc for now
Wed Jul 05 2000 Trond Eivind Glomsrød <teg@redhat.com>
- 3.23.21
- remove file from /etc/sysconfig
- Fix initscript a bit - initialization of databases doesn't work yet
- specify the correct licenses
- include a /etc/my.conf (empty, FTTB)
- add conditional restart to spec file
Sun Jul 02 2000 Jakub Jelinek <jakub@redhat.com>
- Rebuild with new C++
Fri Jun 30 2000 Trond Eivind Glomsrød <teg@redhat.com>
- update to 3.23.20
- use %configure, %makeinstall, %{_tmppath}, %{_mandir}, %{_infodir},
/etc/init.d
- remove the bench package
- change some of the descriptions a little bit
- fix the init script
- some compile fixes
- specify mysql user
- use mysql uid 27 (postgresql is 26)
- don't build on ia64
Sat Feb 26 2000 Jos Vos <jos@xos.nl>
- Version 3.22.32 release XOS.1 for LinuX/OS 1.8.0
- Upgrade from version 3.22.27 to 3.22.32.
- Do "make install" instead of "make install-strip", because "install -s"
now appears to fail on various scripts. Afterwards, strip manually.
- Reorganize subpackages, according to common Red Hat packages: the client
program and shared library become the base package and the server and
some accompanying files are now in a separate server package. The
server package implicitly requires the base package (shared library),
but we have added a manual require tag anyway (because of the shared
config file, and more).
- Rename the mysql-benchmark subpackage to mysql-bench.
Mon Jan 31 2000 Jos Vos <jos@xos.nl>
- Version 3.22.27 release XOS.2 for LinuX/OS 1.7.1
- Add post(un)install scripts for updating ld.so.conf (client subpackage).
Sun Nov 21 1999 Jos Vos <jos@xos.nl>
- Version 3.22.27 release XOS.1 for LinuX/OS 1.7.0
- Initial version.
- Some ideas borrowed from Red Hat Powertools 6.1, although this spec file
is a full rewrite from scratch.
2004-09-09 08:53:43 +00:00
|
|
|
|
|
|
|
# Source function library.
|
|
|
|
. /etc/rc.d/init.d/functions
|
|
|
|
|
|
|
|
# Source networking configuration.
|
|
|
|
. /etc/sysconfig/network
|
|
|
|
|
2004-09-09 08:54:46 +00:00
|
|
|
|
|
|
|
prog="MySQL"
|
|
|
|
|
2007-03-29 22:47:48 +00:00
|
|
|
# extract value of a MySQL option from config files
|
|
|
|
# Usage: get_mysql_option SECTION VARNAME DEFAULT
|
2004-12-10 21:03:42 +00:00
|
|
|
# result is returned in $result
|
2007-03-29 22:47:48 +00:00
|
|
|
# We use my_print_defaults which prints all options from multiple files,
|
|
|
|
# with the more specific ones later; hence take the last match.
|
2004-12-10 21:03:42 +00:00
|
|
|
get_mysql_option(){
|
2007-03-29 22:47:48 +00:00
|
|
|
result=`/usr/bin/my_print_defaults "$1" | sed -n "s/^--$2=//p" | tail -n 1`
|
2004-12-10 21:03:42 +00:00
|
|
|
if [ -z "$result" ]; then
|
|
|
|
# not found, use default
|
|
|
|
result="$3"
|
|
|
|
fi
|
|
|
|
}
|
|
|
|
|
2007-03-29 22:47:48 +00:00
|
|
|
get_mysql_option mysqld datadir "/var/lib/mysql"
|
2004-12-10 21:03:42 +00:00
|
|
|
datadir="$result"
|
2007-03-29 22:47:48 +00:00
|
|
|
get_mysql_option mysqld socket "$datadir/mysql.sock"
|
2004-12-10 21:03:42 +00:00
|
|
|
socketfile="$result"
|
2007-03-29 22:47:48 +00:00
|
|
|
get_mysql_option mysqld_safe log-error "/var/log/mysqld.log"
|
2004-12-10 21:03:42 +00:00
|
|
|
errlogfile="$result"
|
2007-03-29 22:47:48 +00:00
|
|
|
get_mysql_option mysqld_safe pid-file "/var/run/mysqld/mysqld.pid"
|
2004-12-10 21:03:42 +00:00
|
|
|
mypidfile="$result"
|
2004-09-09 08:56:18 +00:00
|
|
|
|
auto-import changelog data from mysql-3.23.22-6.src.rpm
Sun Aug 27 2000 Trond Eivind Glomsrød <teg@redhat.com>
- Add "|| :" to condrestart to avoid non-zero exit code
Thu Aug 24 2000 Trond Eivind Glomsrød <teg@redhat.com>
- it's mysql.com, not mysql.org and use correct path to source (#16830)
Wed Aug 16 2000 Trond Eivind Glomsrød <teg@redhat.com>
- source file from /etc/rc.d, not /etc/rd.d. Doh.
Sun Aug 13 2000 Trond Eivind Glomsrød <teg@redhat.com>
- don't run ldconfig -n, it doesn't update ld.so.cache (#16034)
- include some missing binaries
- use safe_mysqld to start the server (request from mysql developers)
Sat Aug 05 2000 Bill Nottingham <notting@redhat.com>
- condrestart fixes
Tue Aug 01 2000 Trond Eivind Glomsrød <teg@redhat.com>
- 3.23.22. Disable the old patches, they're now in.
Thu Jul 27 2000 Trond Eivind Glomsrød <teg@redhat.com>
- bugfixes in the initscript
- move the .so link to the devel package
Wed Jul 19 2000 Trond Eivind Glomsrød <teg@redhat.com>
- rebuild due to glibc changes
Tue Jul 18 2000 Trond Eivind Glomsrød <teg@redhat.com>
- disable compiler patch
- don't include info directory file
Mon Jul 17 2000 Trond Eivind Glomsrød <teg@redhat.com>
- move back to /etc/rc.d/init.d
Fri Jul 14 2000 Trond Eivind Glomsrød <teg@redhat.com>
- more cleanups in initscript
Thu Jul 13 2000 Trond Eivind Glomsrød <teg@redhat.com>
- add a patch to work around compiler bug (from monty@mysql.com)
Wed Jul 12 2000 Trond Eivind Glomsrød <teg@redhat.com>
- don't build the SQL daemon statically (glibc problems)
- fix the logrotate script - only flush log if mysql is running
- change the reloading procedure
- remove icon - glint is obsolete a long time ago
Wed Jul 12 2000 Prospector <bugzilla@redhat.com>
- automatic rebuild
Mon Jul 10 2000 Trond Eivind Glomsrød <teg@redhat.com>
- try the new compiler again
- build the SQL daemon statically
- add compile time support for complex charsets
- enable assembler
- more cleanups in initscript
Sun Jul 09 2000 Trond Eivind Glomsrød <teg@redhat.com>
- use old C++ compiler
- Exclusivearch x86
Sat Jul 08 2000 Trond Eivind Glomsrød <teg@redhat.com>
- move .so files to devel package
- more cleanups
- exclude sparc for now
Wed Jul 05 2000 Trond Eivind Glomsrød <teg@redhat.com>
- 3.23.21
- remove file from /etc/sysconfig
- Fix initscript a bit - initialization of databases doesn't work yet
- specify the correct licenses
- include a /etc/my.conf (empty, FTTB)
- add conditional restart to spec file
Sun Jul 02 2000 Jakub Jelinek <jakub@redhat.com>
- Rebuild with new C++
Fri Jun 30 2000 Trond Eivind Glomsrød <teg@redhat.com>
- update to 3.23.20
- use %configure, %makeinstall, %{_tmppath}, %{_mandir}, %{_infodir},
/etc/init.d
- remove the bench package
- change some of the descriptions a little bit
- fix the init script
- some compile fixes
- specify mysql user
- use mysql uid 27 (postgresql is 26)
- don't build on ia64
Sat Feb 26 2000 Jos Vos <jos@xos.nl>
- Version 3.22.32 release XOS.1 for LinuX/OS 1.8.0
- Upgrade from version 3.22.27 to 3.22.32.
- Do "make install" instead of "make install-strip", because "install -s"
now appears to fail on various scripts. Afterwards, strip manually.
- Reorganize subpackages, according to common Red Hat packages: the client
program and shared library become the base package and the server and
some accompanying files are now in a separate server package. The
server package implicitly requires the base package (shared library),
but we have added a manual require tag anyway (because of the shared
config file, and more).
- Rename the mysql-benchmark subpackage to mysql-bench.
Mon Jan 31 2000 Jos Vos <jos@xos.nl>
- Version 3.22.27 release XOS.2 for LinuX/OS 1.7.1
- Add post(un)install scripts for updating ld.so.conf (client subpackage).
Sun Nov 21 1999 Jos Vos <jos@xos.nl>
- Version 3.22.27 release XOS.1 for LinuX/OS 1.7.0
- Initial version.
- Some ideas borrowed from Red Hat Powertools 6.1, although this spec file
is a full rewrite from scratch.
2004-09-09 08:53:43 +00:00
|
|
|
start(){
|
2004-12-10 21:03:42 +00:00
|
|
|
touch "$errlogfile"
|
|
|
|
chown mysql:mysql "$errlogfile"
|
|
|
|
chmod 0640 "$errlogfile"
|
|
|
|
[ -x /sbin/restorecon ] && /sbin/restorecon "$errlogfile"
|
|
|
|
if [ ! -d "$datadir/mysql" ] ; then
|
2009-06-07 00:50:06 +00:00
|
|
|
# First, make sure $datadir is there with correct permissions
|
|
|
|
if [ ! -e "$datadir" -a ! -h "$datadir" ]
|
|
|
|
then
|
|
|
|
mkdir -p "$datadir" || exit 1
|
|
|
|
fi
|
|
|
|
chown mysql:mysql "$datadir"
|
|
|
|
chmod 0755 "$datadir"
|
|
|
|
[ -x /sbin/restorecon ] && /sbin/restorecon "$datadir"
|
|
|
|
# Now create the database
|
2008-07-27 17:54:30 +00:00
|
|
|
action $"Initializing MySQL database: " /usr/bin/mysql_install_db --datadir="$datadir" --user=mysql
|
auto-import changelog data from mysql-3.23.22-6.src.rpm
Sun Aug 27 2000 Trond Eivind Glomsrød <teg@redhat.com>
- Add "|| :" to condrestart to avoid non-zero exit code
Thu Aug 24 2000 Trond Eivind Glomsrød <teg@redhat.com>
- it's mysql.com, not mysql.org and use correct path to source (#16830)
Wed Aug 16 2000 Trond Eivind Glomsrød <teg@redhat.com>
- source file from /etc/rc.d, not /etc/rd.d. Doh.
Sun Aug 13 2000 Trond Eivind Glomsrød <teg@redhat.com>
- don't run ldconfig -n, it doesn't update ld.so.cache (#16034)
- include some missing binaries
- use safe_mysqld to start the server (request from mysql developers)
Sat Aug 05 2000 Bill Nottingham <notting@redhat.com>
- condrestart fixes
Tue Aug 01 2000 Trond Eivind Glomsrød <teg@redhat.com>
- 3.23.22. Disable the old patches, they're now in.
Thu Jul 27 2000 Trond Eivind Glomsrød <teg@redhat.com>
- bugfixes in the initscript
- move the .so link to the devel package
Wed Jul 19 2000 Trond Eivind Glomsrød <teg@redhat.com>
- rebuild due to glibc changes
Tue Jul 18 2000 Trond Eivind Glomsrød <teg@redhat.com>
- disable compiler patch
- don't include info directory file
Mon Jul 17 2000 Trond Eivind Glomsrød <teg@redhat.com>
- move back to /etc/rc.d/init.d
Fri Jul 14 2000 Trond Eivind Glomsrød <teg@redhat.com>
- more cleanups in initscript
Thu Jul 13 2000 Trond Eivind Glomsrød <teg@redhat.com>
- add a patch to work around compiler bug (from monty@mysql.com)
Wed Jul 12 2000 Trond Eivind Glomsrød <teg@redhat.com>
- don't build the SQL daemon statically (glibc problems)
- fix the logrotate script - only flush log if mysql is running
- change the reloading procedure
- remove icon - glint is obsolete a long time ago
Wed Jul 12 2000 Prospector <bugzilla@redhat.com>
- automatic rebuild
Mon Jul 10 2000 Trond Eivind Glomsrød <teg@redhat.com>
- try the new compiler again
- build the SQL daemon statically
- add compile time support for complex charsets
- enable assembler
- more cleanups in initscript
Sun Jul 09 2000 Trond Eivind Glomsrød <teg@redhat.com>
- use old C++ compiler
- Exclusivearch x86
Sat Jul 08 2000 Trond Eivind Glomsrød <teg@redhat.com>
- move .so files to devel package
- more cleanups
- exclude sparc for now
Wed Jul 05 2000 Trond Eivind Glomsrød <teg@redhat.com>
- 3.23.21
- remove file from /etc/sysconfig
- Fix initscript a bit - initialization of databases doesn't work yet
- specify the correct licenses
- include a /etc/my.conf (empty, FTTB)
- add conditional restart to spec file
Sun Jul 02 2000 Jakub Jelinek <jakub@redhat.com>
- Rebuild with new C++
Fri Jun 30 2000 Trond Eivind Glomsrød <teg@redhat.com>
- update to 3.23.20
- use %configure, %makeinstall, %{_tmppath}, %{_mandir}, %{_infodir},
/etc/init.d
- remove the bench package
- change some of the descriptions a little bit
- fix the init script
- some compile fixes
- specify mysql user
- use mysql uid 27 (postgresql is 26)
- don't build on ia64
Sat Feb 26 2000 Jos Vos <jos@xos.nl>
- Version 3.22.32 release XOS.1 for LinuX/OS 1.8.0
- Upgrade from version 3.22.27 to 3.22.32.
- Do "make install" instead of "make install-strip", because "install -s"
now appears to fail on various scripts. Afterwards, strip manually.
- Reorganize subpackages, according to common Red Hat packages: the client
program and shared library become the base package and the server and
some accompanying files are now in a separate server package. The
server package implicitly requires the base package (shared library),
but we have added a manual require tag anyway (because of the shared
config file, and more).
- Rename the mysql-benchmark subpackage to mysql-bench.
Mon Jan 31 2000 Jos Vos <jos@xos.nl>
- Version 3.22.27 release XOS.2 for LinuX/OS 1.7.1
- Add post(un)install scripts for updating ld.so.conf (client subpackage).
Sun Nov 21 1999 Jos Vos <jos@xos.nl>
- Version 3.22.27 release XOS.1 for LinuX/OS 1.7.0
- Initial version.
- Some ideas borrowed from Red Hat Powertools 6.1, although this spec file
is a full rewrite from scratch.
2004-09-09 08:53:43 +00:00
|
|
|
ret=$?
|
2004-12-10 21:03:42 +00:00
|
|
|
chown -R mysql:mysql "$datadir"
|
auto-import changelog data from mysql-3.23.22-6.src.rpm
Sun Aug 27 2000 Trond Eivind Glomsrød <teg@redhat.com>
- Add "|| :" to condrestart to avoid non-zero exit code
Thu Aug 24 2000 Trond Eivind Glomsrød <teg@redhat.com>
- it's mysql.com, not mysql.org and use correct path to source (#16830)
Wed Aug 16 2000 Trond Eivind Glomsrød <teg@redhat.com>
- source file from /etc/rc.d, not /etc/rd.d. Doh.
Sun Aug 13 2000 Trond Eivind Glomsrød <teg@redhat.com>
- don't run ldconfig -n, it doesn't update ld.so.cache (#16034)
- include some missing binaries
- use safe_mysqld to start the server (request from mysql developers)
Sat Aug 05 2000 Bill Nottingham <notting@redhat.com>
- condrestart fixes
Tue Aug 01 2000 Trond Eivind Glomsrød <teg@redhat.com>
- 3.23.22. Disable the old patches, they're now in.
Thu Jul 27 2000 Trond Eivind Glomsrød <teg@redhat.com>
- bugfixes in the initscript
- move the .so link to the devel package
Wed Jul 19 2000 Trond Eivind Glomsrød <teg@redhat.com>
- rebuild due to glibc changes
Tue Jul 18 2000 Trond Eivind Glomsrød <teg@redhat.com>
- disable compiler patch
- don't include info directory file
Mon Jul 17 2000 Trond Eivind Glomsrød <teg@redhat.com>
- move back to /etc/rc.d/init.d
Fri Jul 14 2000 Trond Eivind Glomsrød <teg@redhat.com>
- more cleanups in initscript
Thu Jul 13 2000 Trond Eivind Glomsrød <teg@redhat.com>
- add a patch to work around compiler bug (from monty@mysql.com)
Wed Jul 12 2000 Trond Eivind Glomsrød <teg@redhat.com>
- don't build the SQL daemon statically (glibc problems)
- fix the logrotate script - only flush log if mysql is running
- change the reloading procedure
- remove icon - glint is obsolete a long time ago
Wed Jul 12 2000 Prospector <bugzilla@redhat.com>
- automatic rebuild
Mon Jul 10 2000 Trond Eivind Glomsrød <teg@redhat.com>
- try the new compiler again
- build the SQL daemon statically
- add compile time support for complex charsets
- enable assembler
- more cleanups in initscript
Sun Jul 09 2000 Trond Eivind Glomsrød <teg@redhat.com>
- use old C++ compiler
- Exclusivearch x86
Sat Jul 08 2000 Trond Eivind Glomsrød <teg@redhat.com>
- move .so files to devel package
- more cleanups
- exclude sparc for now
Wed Jul 05 2000 Trond Eivind Glomsrød <teg@redhat.com>
- 3.23.21
- remove file from /etc/sysconfig
- Fix initscript a bit - initialization of databases doesn't work yet
- specify the correct licenses
- include a /etc/my.conf (empty, FTTB)
- add conditional restart to spec file
Sun Jul 02 2000 Jakub Jelinek <jakub@redhat.com>
- Rebuild with new C++
Fri Jun 30 2000 Trond Eivind Glomsrød <teg@redhat.com>
- update to 3.23.20
- use %configure, %makeinstall, %{_tmppath}, %{_mandir}, %{_infodir},
/etc/init.d
- remove the bench package
- change some of the descriptions a little bit
- fix the init script
- some compile fixes
- specify mysql user
- use mysql uid 27 (postgresql is 26)
- don't build on ia64
Sat Feb 26 2000 Jos Vos <jos@xos.nl>
- Version 3.22.32 release XOS.1 for LinuX/OS 1.8.0
- Upgrade from version 3.22.27 to 3.22.32.
- Do "make install" instead of "make install-strip", because "install -s"
now appears to fail on various scripts. Afterwards, strip manually.
- Reorganize subpackages, according to common Red Hat packages: the client
program and shared library become the base package and the server and
some accompanying files are now in a separate server package. The
server package implicitly requires the base package (shared library),
but we have added a manual require tag anyway (because of the shared
config file, and more).
- Rename the mysql-benchmark subpackage to mysql-bench.
Mon Jan 31 2000 Jos Vos <jos@xos.nl>
- Version 3.22.27 release XOS.2 for LinuX/OS 1.7.1
- Add post(un)install scripts for updating ld.so.conf (client subpackage).
Sun Nov 21 1999 Jos Vos <jos@xos.nl>
- Version 3.22.27 release XOS.1 for LinuX/OS 1.7.0
- Initial version.
- Some ideas borrowed from Red Hat Powertools 6.1, although this spec file
is a full rewrite from scratch.
2004-09-09 08:53:43 +00:00
|
|
|
if [ $ret -ne 0 ] ; then
|
2004-12-10 21:03:42 +00:00
|
|
|
return $ret
|
auto-import changelog data from mysql-3.23.22-6.src.rpm
Sun Aug 27 2000 Trond Eivind Glomsrød <teg@redhat.com>
- Add "|| :" to condrestart to avoid non-zero exit code
Thu Aug 24 2000 Trond Eivind Glomsrød <teg@redhat.com>
- it's mysql.com, not mysql.org and use correct path to source (#16830)
Wed Aug 16 2000 Trond Eivind Glomsrød <teg@redhat.com>
- source file from /etc/rc.d, not /etc/rd.d. Doh.
Sun Aug 13 2000 Trond Eivind Glomsrød <teg@redhat.com>
- don't run ldconfig -n, it doesn't update ld.so.cache (#16034)
- include some missing binaries
- use safe_mysqld to start the server (request from mysql developers)
Sat Aug 05 2000 Bill Nottingham <notting@redhat.com>
- condrestart fixes
Tue Aug 01 2000 Trond Eivind Glomsrød <teg@redhat.com>
- 3.23.22. Disable the old patches, they're now in.
Thu Jul 27 2000 Trond Eivind Glomsrød <teg@redhat.com>
- bugfixes in the initscript
- move the .so link to the devel package
Wed Jul 19 2000 Trond Eivind Glomsrød <teg@redhat.com>
- rebuild due to glibc changes
Tue Jul 18 2000 Trond Eivind Glomsrød <teg@redhat.com>
- disable compiler patch
- don't include info directory file
Mon Jul 17 2000 Trond Eivind Glomsrød <teg@redhat.com>
- move back to /etc/rc.d/init.d
Fri Jul 14 2000 Trond Eivind Glomsrød <teg@redhat.com>
- more cleanups in initscript
Thu Jul 13 2000 Trond Eivind Glomsrød <teg@redhat.com>
- add a patch to work around compiler bug (from monty@mysql.com)
Wed Jul 12 2000 Trond Eivind Glomsrød <teg@redhat.com>
- don't build the SQL daemon statically (glibc problems)
- fix the logrotate script - only flush log if mysql is running
- change the reloading procedure
- remove icon - glint is obsolete a long time ago
Wed Jul 12 2000 Prospector <bugzilla@redhat.com>
- automatic rebuild
Mon Jul 10 2000 Trond Eivind Glomsrød <teg@redhat.com>
- try the new compiler again
- build the SQL daemon statically
- add compile time support for complex charsets
- enable assembler
- more cleanups in initscript
Sun Jul 09 2000 Trond Eivind Glomsrød <teg@redhat.com>
- use old C++ compiler
- Exclusivearch x86
Sat Jul 08 2000 Trond Eivind Glomsrød <teg@redhat.com>
- move .so files to devel package
- more cleanups
- exclude sparc for now
Wed Jul 05 2000 Trond Eivind Glomsrød <teg@redhat.com>
- 3.23.21
- remove file from /etc/sysconfig
- Fix initscript a bit - initialization of databases doesn't work yet
- specify the correct licenses
- include a /etc/my.conf (empty, FTTB)
- add conditional restart to spec file
Sun Jul 02 2000 Jakub Jelinek <jakub@redhat.com>
- Rebuild with new C++
Fri Jun 30 2000 Trond Eivind Glomsrød <teg@redhat.com>
- update to 3.23.20
- use %configure, %makeinstall, %{_tmppath}, %{_mandir}, %{_infodir},
/etc/init.d
- remove the bench package
- change some of the descriptions a little bit
- fix the init script
- some compile fixes
- specify mysql user
- use mysql uid 27 (postgresql is 26)
- don't build on ia64
Sat Feb 26 2000 Jos Vos <jos@xos.nl>
- Version 3.22.32 release XOS.1 for LinuX/OS 1.8.0
- Upgrade from version 3.22.27 to 3.22.32.
- Do "make install" instead of "make install-strip", because "install -s"
now appears to fail on various scripts. Afterwards, strip manually.
- Reorganize subpackages, according to common Red Hat packages: the client
program and shared library become the base package and the server and
some accompanying files are now in a separate server package. The
server package implicitly requires the base package (shared library),
but we have added a manual require tag anyway (because of the shared
config file, and more).
- Rename the mysql-benchmark subpackage to mysql-bench.
Mon Jan 31 2000 Jos Vos <jos@xos.nl>
- Version 3.22.27 release XOS.2 for LinuX/OS 1.7.1
- Add post(un)install scripts for updating ld.so.conf (client subpackage).
Sun Nov 21 1999 Jos Vos <jos@xos.nl>
- Version 3.22.27 release XOS.1 for LinuX/OS 1.7.0
- Initial version.
- Some ideas borrowed from Red Hat Powertools 6.1, although this spec file
is a full rewrite from scratch.
2004-09-09 08:53:43 +00:00
|
|
|
fi
|
|
|
|
fi
|
2007-02-09 20:32:52 +00:00
|
|
|
chown mysql:mysql "$datadir"
|
2004-12-10 21:03:42 +00:00
|
|
|
chmod 0755 "$datadir"
|
2007-03-29 22:47:48 +00:00
|
|
|
# Pass all the options determined above, to ensure consistent behavior.
|
|
|
|
# In many cases mysqld_safe would arrive at the same conclusions anyway
|
2009-11-10 20:04:18 +00:00
|
|
|
# but we need to be sure. (An exception is that we don't force the
|
|
|
|
# log-error setting, since this script doesn't really depend on that,
|
|
|
|
# and some users might prefer to configure logging to syslog.)
|
2010-01-02 01:44:16 +00:00
|
|
|
# Note: set --basedir to prevent probes that might trigger SELinux
|
|
|
|
# alarms, per bug #547485
|
2007-03-29 22:47:48 +00:00
|
|
|
/usr/bin/mysqld_safe --datadir="$datadir" --socket="$socketfile" \
|
2009-11-10 20:04:18 +00:00
|
|
|
--pid-file="$mypidfile" \
|
2010-01-02 01:44:16 +00:00
|
|
|
--basedir=/usr --user=mysql >/dev/null 2>&1 &
|
2009-12-17 19:38:27 +00:00
|
|
|
safe_pid=$!
|
|
|
|
# Spin for a maximum of N seconds waiting for the server to come up;
|
|
|
|
# exit the loop immediately if mysqld_safe process disappears.
|
2004-12-10 19:09:25 +00:00
|
|
|
# Rather than assuming we know a valid username, accept an "access
|
|
|
|
# denied" response as meaning the server is functioning.
|
2009-12-17 19:38:27 +00:00
|
|
|
ret=0
|
|
|
|
STARTTIMEOUT=120
|
|
|
|
while [ $STARTTIMEOUT -gt 0 ]; do
|
|
|
|
RESPONSE=`/usr/bin/mysqladmin --socket="$socketfile" --user=UNKNOWN_MYSQL_USER ping 2>&1` && break
|
|
|
|
echo "$RESPONSE" | grep -q "Access denied for user" && break
|
|
|
|
if ! /bin/kill -0 $safe_pid 2>/dev/null; then
|
|
|
|
echo "MySQL Daemon failed to start."
|
|
|
|
ret=1
|
|
|
|
break
|
|
|
|
fi
|
|
|
|
sleep 1
|
|
|
|
let STARTTIMEOUT=${STARTTIMEOUT}-1
|
|
|
|
done
|
|
|
|
if [ $STARTTIMEOUT -eq 0 ]; then
|
|
|
|
echo "Timeout error occurred trying to start MySQL Daemon."
|
|
|
|
ret=1
|
|
|
|
fi
|
auto-import changelog data from mysql-3.23.22-6.src.rpm
Sun Aug 27 2000 Trond Eivind Glomsrød <teg@redhat.com>
- Add "|| :" to condrestart to avoid non-zero exit code
Thu Aug 24 2000 Trond Eivind Glomsrød <teg@redhat.com>
- it's mysql.com, not mysql.org and use correct path to source (#16830)
Wed Aug 16 2000 Trond Eivind Glomsrød <teg@redhat.com>
- source file from /etc/rc.d, not /etc/rd.d. Doh.
Sun Aug 13 2000 Trond Eivind Glomsrød <teg@redhat.com>
- don't run ldconfig -n, it doesn't update ld.so.cache (#16034)
- include some missing binaries
- use safe_mysqld to start the server (request from mysql developers)
Sat Aug 05 2000 Bill Nottingham <notting@redhat.com>
- condrestart fixes
Tue Aug 01 2000 Trond Eivind Glomsrød <teg@redhat.com>
- 3.23.22. Disable the old patches, they're now in.
Thu Jul 27 2000 Trond Eivind Glomsrød <teg@redhat.com>
- bugfixes in the initscript
- move the .so link to the devel package
Wed Jul 19 2000 Trond Eivind Glomsrød <teg@redhat.com>
- rebuild due to glibc changes
Tue Jul 18 2000 Trond Eivind Glomsrød <teg@redhat.com>
- disable compiler patch
- don't include info directory file
Mon Jul 17 2000 Trond Eivind Glomsrød <teg@redhat.com>
- move back to /etc/rc.d/init.d
Fri Jul 14 2000 Trond Eivind Glomsrød <teg@redhat.com>
- more cleanups in initscript
Thu Jul 13 2000 Trond Eivind Glomsrød <teg@redhat.com>
- add a patch to work around compiler bug (from monty@mysql.com)
Wed Jul 12 2000 Trond Eivind Glomsrød <teg@redhat.com>
- don't build the SQL daemon statically (glibc problems)
- fix the logrotate script - only flush log if mysql is running
- change the reloading procedure
- remove icon - glint is obsolete a long time ago
Wed Jul 12 2000 Prospector <bugzilla@redhat.com>
- automatic rebuild
Mon Jul 10 2000 Trond Eivind Glomsrød <teg@redhat.com>
- try the new compiler again
- build the SQL daemon statically
- add compile time support for complex charsets
- enable assembler
- more cleanups in initscript
Sun Jul 09 2000 Trond Eivind Glomsrød <teg@redhat.com>
- use old C++ compiler
- Exclusivearch x86
Sat Jul 08 2000 Trond Eivind Glomsrød <teg@redhat.com>
- move .so files to devel package
- more cleanups
- exclude sparc for now
Wed Jul 05 2000 Trond Eivind Glomsrød <teg@redhat.com>
- 3.23.21
- remove file from /etc/sysconfig
- Fix initscript a bit - initialization of databases doesn't work yet
- specify the correct licenses
- include a /etc/my.conf (empty, FTTB)
- add conditional restart to spec file
Sun Jul 02 2000 Jakub Jelinek <jakub@redhat.com>
- Rebuild with new C++
Fri Jun 30 2000 Trond Eivind Glomsrød <teg@redhat.com>
- update to 3.23.20
- use %configure, %makeinstall, %{_tmppath}, %{_mandir}, %{_infodir},
/etc/init.d
- remove the bench package
- change some of the descriptions a little bit
- fix the init script
- some compile fixes
- specify mysql user
- use mysql uid 27 (postgresql is 26)
- don't build on ia64
Sat Feb 26 2000 Jos Vos <jos@xos.nl>
- Version 3.22.32 release XOS.1 for LinuX/OS 1.8.0
- Upgrade from version 3.22.27 to 3.22.32.
- Do "make install" instead of "make install-strip", because "install -s"
now appears to fail on various scripts. Afterwards, strip manually.
- Reorganize subpackages, according to common Red Hat packages: the client
program and shared library become the base package and the server and
some accompanying files are now in a separate server package. The
server package implicitly requires the base package (shared library),
but we have added a manual require tag anyway (because of the shared
config file, and more).
- Rename the mysql-benchmark subpackage to mysql-bench.
Mon Jan 31 2000 Jos Vos <jos@xos.nl>
- Version 3.22.27 release XOS.2 for LinuX/OS 1.7.1
- Add post(un)install scripts for updating ld.so.conf (client subpackage).
Sun Nov 21 1999 Jos Vos <jos@xos.nl>
- Version 3.22.27 release XOS.1 for LinuX/OS 1.7.0
- Initial version.
- Some ideas borrowed from Red Hat Powertools 6.1, although this spec file
is a full rewrite from scratch.
2004-09-09 08:53:43 +00:00
|
|
|
if [ $ret -eq 0 ]; then
|
2009-12-17 19:38:27 +00:00
|
|
|
action $"Starting $prog: " /bin/true
|
|
|
|
touch /var/lock/subsys/mysqld
|
auto-import changelog data from mysql-3.23.22-6.src.rpm
Sun Aug 27 2000 Trond Eivind Glomsrød <teg@redhat.com>
- Add "|| :" to condrestart to avoid non-zero exit code
Thu Aug 24 2000 Trond Eivind Glomsrød <teg@redhat.com>
- it's mysql.com, not mysql.org and use correct path to source (#16830)
Wed Aug 16 2000 Trond Eivind Glomsrød <teg@redhat.com>
- source file from /etc/rc.d, not /etc/rd.d. Doh.
Sun Aug 13 2000 Trond Eivind Glomsrød <teg@redhat.com>
- don't run ldconfig -n, it doesn't update ld.so.cache (#16034)
- include some missing binaries
- use safe_mysqld to start the server (request from mysql developers)
Sat Aug 05 2000 Bill Nottingham <notting@redhat.com>
- condrestart fixes
Tue Aug 01 2000 Trond Eivind Glomsrød <teg@redhat.com>
- 3.23.22. Disable the old patches, they're now in.
Thu Jul 27 2000 Trond Eivind Glomsrød <teg@redhat.com>
- bugfixes in the initscript
- move the .so link to the devel package
Wed Jul 19 2000 Trond Eivind Glomsrød <teg@redhat.com>
- rebuild due to glibc changes
Tue Jul 18 2000 Trond Eivind Glomsrød <teg@redhat.com>
- disable compiler patch
- don't include info directory file
Mon Jul 17 2000 Trond Eivind Glomsrød <teg@redhat.com>
- move back to /etc/rc.d/init.d
Fri Jul 14 2000 Trond Eivind Glomsrød <teg@redhat.com>
- more cleanups in initscript
Thu Jul 13 2000 Trond Eivind Glomsrød <teg@redhat.com>
- add a patch to work around compiler bug (from monty@mysql.com)
Wed Jul 12 2000 Trond Eivind Glomsrød <teg@redhat.com>
- don't build the SQL daemon statically (glibc problems)
- fix the logrotate script - only flush log if mysql is running
- change the reloading procedure
- remove icon - glint is obsolete a long time ago
Wed Jul 12 2000 Prospector <bugzilla@redhat.com>
- automatic rebuild
Mon Jul 10 2000 Trond Eivind Glomsrød <teg@redhat.com>
- try the new compiler again
- build the SQL daemon statically
- add compile time support for complex charsets
- enable assembler
- more cleanups in initscript
Sun Jul 09 2000 Trond Eivind Glomsrød <teg@redhat.com>
- use old C++ compiler
- Exclusivearch x86
Sat Jul 08 2000 Trond Eivind Glomsrød <teg@redhat.com>
- move .so files to devel package
- more cleanups
- exclude sparc for now
Wed Jul 05 2000 Trond Eivind Glomsrød <teg@redhat.com>
- 3.23.21
- remove file from /etc/sysconfig
- Fix initscript a bit - initialization of databases doesn't work yet
- specify the correct licenses
- include a /etc/my.conf (empty, FTTB)
- add conditional restart to spec file
Sun Jul 02 2000 Jakub Jelinek <jakub@redhat.com>
- Rebuild with new C++
Fri Jun 30 2000 Trond Eivind Glomsrød <teg@redhat.com>
- update to 3.23.20
- use %configure, %makeinstall, %{_tmppath}, %{_mandir}, %{_infodir},
/etc/init.d
- remove the bench package
- change some of the descriptions a little bit
- fix the init script
- some compile fixes
- specify mysql user
- use mysql uid 27 (postgresql is 26)
- don't build on ia64
Sat Feb 26 2000 Jos Vos <jos@xos.nl>
- Version 3.22.32 release XOS.1 for LinuX/OS 1.8.0
- Upgrade from version 3.22.27 to 3.22.32.
- Do "make install" instead of "make install-strip", because "install -s"
now appears to fail on various scripts. Afterwards, strip manually.
- Reorganize subpackages, according to common Red Hat packages: the client
program and shared library become the base package and the server and
some accompanying files are now in a separate server package. The
server package implicitly requires the base package (shared library),
but we have added a manual require tag anyway (because of the shared
config file, and more).
- Rename the mysql-benchmark subpackage to mysql-bench.
Mon Jan 31 2000 Jos Vos <jos@xos.nl>
- Version 3.22.27 release XOS.2 for LinuX/OS 1.7.1
- Add post(un)install scripts for updating ld.so.conf (client subpackage).
Sun Nov 21 1999 Jos Vos <jos@xos.nl>
- Version 3.22.27 release XOS.1 for LinuX/OS 1.7.0
- Initial version.
- Some ideas borrowed from Red Hat Powertools 6.1, although this spec file
is a full rewrite from scratch.
2004-09-09 08:53:43 +00:00
|
|
|
else
|
2009-12-17 19:38:27 +00:00
|
|
|
action $"Starting $prog: " /bin/false
|
auto-import changelog data from mysql-3.23.22-6.src.rpm
Sun Aug 27 2000 Trond Eivind Glomsrød <teg@redhat.com>
- Add "|| :" to condrestart to avoid non-zero exit code
Thu Aug 24 2000 Trond Eivind Glomsrød <teg@redhat.com>
- it's mysql.com, not mysql.org and use correct path to source (#16830)
Wed Aug 16 2000 Trond Eivind Glomsrød <teg@redhat.com>
- source file from /etc/rc.d, not /etc/rd.d. Doh.
Sun Aug 13 2000 Trond Eivind Glomsrød <teg@redhat.com>
- don't run ldconfig -n, it doesn't update ld.so.cache (#16034)
- include some missing binaries
- use safe_mysqld to start the server (request from mysql developers)
Sat Aug 05 2000 Bill Nottingham <notting@redhat.com>
- condrestart fixes
Tue Aug 01 2000 Trond Eivind Glomsrød <teg@redhat.com>
- 3.23.22. Disable the old patches, they're now in.
Thu Jul 27 2000 Trond Eivind Glomsrød <teg@redhat.com>
- bugfixes in the initscript
- move the .so link to the devel package
Wed Jul 19 2000 Trond Eivind Glomsrød <teg@redhat.com>
- rebuild due to glibc changes
Tue Jul 18 2000 Trond Eivind Glomsrød <teg@redhat.com>
- disable compiler patch
- don't include info directory file
Mon Jul 17 2000 Trond Eivind Glomsrød <teg@redhat.com>
- move back to /etc/rc.d/init.d
Fri Jul 14 2000 Trond Eivind Glomsrød <teg@redhat.com>
- more cleanups in initscript
Thu Jul 13 2000 Trond Eivind Glomsrød <teg@redhat.com>
- add a patch to work around compiler bug (from monty@mysql.com)
Wed Jul 12 2000 Trond Eivind Glomsrød <teg@redhat.com>
- don't build the SQL daemon statically (glibc problems)
- fix the logrotate script - only flush log if mysql is running
- change the reloading procedure
- remove icon - glint is obsolete a long time ago
Wed Jul 12 2000 Prospector <bugzilla@redhat.com>
- automatic rebuild
Mon Jul 10 2000 Trond Eivind Glomsrød <teg@redhat.com>
- try the new compiler again
- build the SQL daemon statically
- add compile time support for complex charsets
- enable assembler
- more cleanups in initscript
Sun Jul 09 2000 Trond Eivind Glomsrød <teg@redhat.com>
- use old C++ compiler
- Exclusivearch x86
Sat Jul 08 2000 Trond Eivind Glomsrød <teg@redhat.com>
- move .so files to devel package
- more cleanups
- exclude sparc for now
Wed Jul 05 2000 Trond Eivind Glomsrød <teg@redhat.com>
- 3.23.21
- remove file from /etc/sysconfig
- Fix initscript a bit - initialization of databases doesn't work yet
- specify the correct licenses
- include a /etc/my.conf (empty, FTTB)
- add conditional restart to spec file
Sun Jul 02 2000 Jakub Jelinek <jakub@redhat.com>
- Rebuild with new C++
Fri Jun 30 2000 Trond Eivind Glomsrød <teg@redhat.com>
- update to 3.23.20
- use %configure, %makeinstall, %{_tmppath}, %{_mandir}, %{_infodir},
/etc/init.d
- remove the bench package
- change some of the descriptions a little bit
- fix the init script
- some compile fixes
- specify mysql user
- use mysql uid 27 (postgresql is 26)
- don't build on ia64
Sat Feb 26 2000 Jos Vos <jos@xos.nl>
- Version 3.22.32 release XOS.1 for LinuX/OS 1.8.0
- Upgrade from version 3.22.27 to 3.22.32.
- Do "make install" instead of "make install-strip", because "install -s"
now appears to fail on various scripts. Afterwards, strip manually.
- Reorganize subpackages, according to common Red Hat packages: the client
program and shared library become the base package and the server and
some accompanying files are now in a separate server package. The
server package implicitly requires the base package (shared library),
but we have added a manual require tag anyway (because of the shared
config file, and more).
- Rename the mysql-benchmark subpackage to mysql-bench.
Mon Jan 31 2000 Jos Vos <jos@xos.nl>
- Version 3.22.27 release XOS.2 for LinuX/OS 1.7.1
- Add post(un)install scripts for updating ld.so.conf (client subpackage).
Sun Nov 21 1999 Jos Vos <jos@xos.nl>
- Version 3.22.27 release XOS.1 for LinuX/OS 1.7.0
- Initial version.
- Some ideas borrowed from Red Hat Powertools 6.1, although this spec file
is a full rewrite from scratch.
2004-09-09 08:53:43 +00:00
|
|
|
fi
|
|
|
|
return $ret
|
|
|
|
}
|
|
|
|
|
|
|
|
stop(){
|
2005-11-14 17:31:18 +00:00
|
|
|
MYSQLPID=`cat "$mypidfile" 2>/dev/null `
|
|
|
|
if [ -n "$MYSQLPID" ]; then
|
|
|
|
/bin/kill "$MYSQLPID" >/dev/null 2>&1
|
|
|
|
ret=$?
|
|
|
|
if [ $ret -eq 0 ]; then
|
|
|
|
STOPTIMEOUT=60
|
|
|
|
while [ $STOPTIMEOUT -gt 0 ]; do
|
|
|
|
/bin/kill -0 "$MYSQLPID" >/dev/null 2>&1 || break
|
|
|
|
sleep 1
|
|
|
|
let STOPTIMEOUT=${STOPTIMEOUT}-1
|
|
|
|
done
|
|
|
|
if [ $STOPTIMEOUT -eq 0 ]; then
|
|
|
|
echo "Timeout error occurred trying to stop MySQL Daemon."
|
|
|
|
ret=1
|
|
|
|
action $"Stopping $prog: " /bin/false
|
|
|
|
else
|
|
|
|
rm -f /var/lock/subsys/mysqld
|
|
|
|
rm -f "$socketfile"
|
|
|
|
action $"Stopping $prog: " /bin/true
|
|
|
|
fi
|
|
|
|
else
|
|
|
|
action $"Stopping $prog: " /bin/false
|
|
|
|
fi
|
|
|
|
else
|
|
|
|
ret=1
|
|
|
|
action $"Stopping $prog: " /bin/false
|
|
|
|
fi
|
|
|
|
return $ret
|
auto-import changelog data from mysql-3.23.22-6.src.rpm
Sun Aug 27 2000 Trond Eivind Glomsrød <teg@redhat.com>
- Add "|| :" to condrestart to avoid non-zero exit code
Thu Aug 24 2000 Trond Eivind Glomsrød <teg@redhat.com>
- it's mysql.com, not mysql.org and use correct path to source (#16830)
Wed Aug 16 2000 Trond Eivind Glomsrød <teg@redhat.com>
- source file from /etc/rc.d, not /etc/rd.d. Doh.
Sun Aug 13 2000 Trond Eivind Glomsrød <teg@redhat.com>
- don't run ldconfig -n, it doesn't update ld.so.cache (#16034)
- include some missing binaries
- use safe_mysqld to start the server (request from mysql developers)
Sat Aug 05 2000 Bill Nottingham <notting@redhat.com>
- condrestart fixes
Tue Aug 01 2000 Trond Eivind Glomsrød <teg@redhat.com>
- 3.23.22. Disable the old patches, they're now in.
Thu Jul 27 2000 Trond Eivind Glomsrød <teg@redhat.com>
- bugfixes in the initscript
- move the .so link to the devel package
Wed Jul 19 2000 Trond Eivind Glomsrød <teg@redhat.com>
- rebuild due to glibc changes
Tue Jul 18 2000 Trond Eivind Glomsrød <teg@redhat.com>
- disable compiler patch
- don't include info directory file
Mon Jul 17 2000 Trond Eivind Glomsrød <teg@redhat.com>
- move back to /etc/rc.d/init.d
Fri Jul 14 2000 Trond Eivind Glomsrød <teg@redhat.com>
- more cleanups in initscript
Thu Jul 13 2000 Trond Eivind Glomsrød <teg@redhat.com>
- add a patch to work around compiler bug (from monty@mysql.com)
Wed Jul 12 2000 Trond Eivind Glomsrød <teg@redhat.com>
- don't build the SQL daemon statically (glibc problems)
- fix the logrotate script - only flush log if mysql is running
- change the reloading procedure
- remove icon - glint is obsolete a long time ago
Wed Jul 12 2000 Prospector <bugzilla@redhat.com>
- automatic rebuild
Mon Jul 10 2000 Trond Eivind Glomsrød <teg@redhat.com>
- try the new compiler again
- build the SQL daemon statically
- add compile time support for complex charsets
- enable assembler
- more cleanups in initscript
Sun Jul 09 2000 Trond Eivind Glomsrød <teg@redhat.com>
- use old C++ compiler
- Exclusivearch x86
Sat Jul 08 2000 Trond Eivind Glomsrød <teg@redhat.com>
- move .so files to devel package
- more cleanups
- exclude sparc for now
Wed Jul 05 2000 Trond Eivind Glomsrød <teg@redhat.com>
- 3.23.21
- remove file from /etc/sysconfig
- Fix initscript a bit - initialization of databases doesn't work yet
- specify the correct licenses
- include a /etc/my.conf (empty, FTTB)
- add conditional restart to spec file
Sun Jul 02 2000 Jakub Jelinek <jakub@redhat.com>
- Rebuild with new C++
Fri Jun 30 2000 Trond Eivind Glomsrød <teg@redhat.com>
- update to 3.23.20
- use %configure, %makeinstall, %{_tmppath}, %{_mandir}, %{_infodir},
/etc/init.d
- remove the bench package
- change some of the descriptions a little bit
- fix the init script
- some compile fixes
- specify mysql user
- use mysql uid 27 (postgresql is 26)
- don't build on ia64
Sat Feb 26 2000 Jos Vos <jos@xos.nl>
- Version 3.22.32 release XOS.1 for LinuX/OS 1.8.0
- Upgrade from version 3.22.27 to 3.22.32.
- Do "make install" instead of "make install-strip", because "install -s"
now appears to fail on various scripts. Afterwards, strip manually.
- Reorganize subpackages, according to common Red Hat packages: the client
program and shared library become the base package and the server and
some accompanying files are now in a separate server package. The
server package implicitly requires the base package (shared library),
but we have added a manual require tag anyway (because of the shared
config file, and more).
- Rename the mysql-benchmark subpackage to mysql-bench.
Mon Jan 31 2000 Jos Vos <jos@xos.nl>
- Version 3.22.27 release XOS.2 for LinuX/OS 1.7.1
- Add post(un)install scripts for updating ld.so.conf (client subpackage).
Sun Nov 21 1999 Jos Vos <jos@xos.nl>
- Version 3.22.27 release XOS.1 for LinuX/OS 1.7.0
- Initial version.
- Some ideas borrowed from Red Hat Powertools 6.1, although this spec file
is a full rewrite from scratch.
2004-09-09 08:53:43 +00:00
|
|
|
}
|
2004-09-09 08:54:46 +00:00
|
|
|
|
auto-import changelog data from mysql-3.23.22-6.src.rpm
Sun Aug 27 2000 Trond Eivind Glomsrød <teg@redhat.com>
- Add "|| :" to condrestart to avoid non-zero exit code
Thu Aug 24 2000 Trond Eivind Glomsrød <teg@redhat.com>
- it's mysql.com, not mysql.org and use correct path to source (#16830)
Wed Aug 16 2000 Trond Eivind Glomsrød <teg@redhat.com>
- source file from /etc/rc.d, not /etc/rd.d. Doh.
Sun Aug 13 2000 Trond Eivind Glomsrød <teg@redhat.com>
- don't run ldconfig -n, it doesn't update ld.so.cache (#16034)
- include some missing binaries
- use safe_mysqld to start the server (request from mysql developers)
Sat Aug 05 2000 Bill Nottingham <notting@redhat.com>
- condrestart fixes
Tue Aug 01 2000 Trond Eivind Glomsrød <teg@redhat.com>
- 3.23.22. Disable the old patches, they're now in.
Thu Jul 27 2000 Trond Eivind Glomsrød <teg@redhat.com>
- bugfixes in the initscript
- move the .so link to the devel package
Wed Jul 19 2000 Trond Eivind Glomsrød <teg@redhat.com>
- rebuild due to glibc changes
Tue Jul 18 2000 Trond Eivind Glomsrød <teg@redhat.com>
- disable compiler patch
- don't include info directory file
Mon Jul 17 2000 Trond Eivind Glomsrød <teg@redhat.com>
- move back to /etc/rc.d/init.d
Fri Jul 14 2000 Trond Eivind Glomsrød <teg@redhat.com>
- more cleanups in initscript
Thu Jul 13 2000 Trond Eivind Glomsrød <teg@redhat.com>
- add a patch to work around compiler bug (from monty@mysql.com)
Wed Jul 12 2000 Trond Eivind Glomsrød <teg@redhat.com>
- don't build the SQL daemon statically (glibc problems)
- fix the logrotate script - only flush log if mysql is running
- change the reloading procedure
- remove icon - glint is obsolete a long time ago
Wed Jul 12 2000 Prospector <bugzilla@redhat.com>
- automatic rebuild
Mon Jul 10 2000 Trond Eivind Glomsrød <teg@redhat.com>
- try the new compiler again
- build the SQL daemon statically
- add compile time support for complex charsets
- enable assembler
- more cleanups in initscript
Sun Jul 09 2000 Trond Eivind Glomsrød <teg@redhat.com>
- use old C++ compiler
- Exclusivearch x86
Sat Jul 08 2000 Trond Eivind Glomsrød <teg@redhat.com>
- move .so files to devel package
- more cleanups
- exclude sparc for now
Wed Jul 05 2000 Trond Eivind Glomsrød <teg@redhat.com>
- 3.23.21
- remove file from /etc/sysconfig
- Fix initscript a bit - initialization of databases doesn't work yet
- specify the correct licenses
- include a /etc/my.conf (empty, FTTB)
- add conditional restart to spec file
Sun Jul 02 2000 Jakub Jelinek <jakub@redhat.com>
- Rebuild with new C++
Fri Jun 30 2000 Trond Eivind Glomsrød <teg@redhat.com>
- update to 3.23.20
- use %configure, %makeinstall, %{_tmppath}, %{_mandir}, %{_infodir},
/etc/init.d
- remove the bench package
- change some of the descriptions a little bit
- fix the init script
- some compile fixes
- specify mysql user
- use mysql uid 27 (postgresql is 26)
- don't build on ia64
Sat Feb 26 2000 Jos Vos <jos@xos.nl>
- Version 3.22.32 release XOS.1 for LinuX/OS 1.8.0
- Upgrade from version 3.22.27 to 3.22.32.
- Do "make install" instead of "make install-strip", because "install -s"
now appears to fail on various scripts. Afterwards, strip manually.
- Reorganize subpackages, according to common Red Hat packages: the client
program and shared library become the base package and the server and
some accompanying files are now in a separate server package. The
server package implicitly requires the base package (shared library),
but we have added a manual require tag anyway (because of the shared
config file, and more).
- Rename the mysql-benchmark subpackage to mysql-bench.
Mon Jan 31 2000 Jos Vos <jos@xos.nl>
- Version 3.22.27 release XOS.2 for LinuX/OS 1.7.1
- Add post(un)install scripts for updating ld.so.conf (client subpackage).
Sun Nov 21 1999 Jos Vos <jos@xos.nl>
- Version 3.22.27 release XOS.1 for LinuX/OS 1.7.0
- Initial version.
- Some ideas borrowed from Red Hat Powertools 6.1, although this spec file
is a full rewrite from scratch.
2004-09-09 08:53:43 +00:00
|
|
|
restart(){
|
|
|
|
stop
|
|
|
|
start
|
|
|
|
}
|
|
|
|
|
|
|
|
condrestart(){
|
|
|
|
[ -e /var/lock/subsys/mysqld ] && restart || :
|
|
|
|
}
|
|
|
|
|
|
|
|
# See how we were called.
|
|
|
|
case "$1" in
|
|
|
|
start)
|
|
|
|
start
|
|
|
|
;;
|
|
|
|
stop)
|
|
|
|
stop
|
|
|
|
;;
|
|
|
|
status)
|
|
|
|
status mysqld
|
|
|
|
;;
|
|
|
|
restart)
|
|
|
|
restart
|
|
|
|
;;
|
|
|
|
condrestart)
|
|
|
|
condrestart
|
|
|
|
;;
|
|
|
|
*)
|
2004-09-09 08:56:18 +00:00
|
|
|
echo $"Usage: $0 {start|stop|status|condrestart|restart}"
|
auto-import changelog data from mysql-3.23.22-6.src.rpm
Sun Aug 27 2000 Trond Eivind Glomsrød <teg@redhat.com>
- Add "|| :" to condrestart to avoid non-zero exit code
Thu Aug 24 2000 Trond Eivind Glomsrød <teg@redhat.com>
- it's mysql.com, not mysql.org and use correct path to source (#16830)
Wed Aug 16 2000 Trond Eivind Glomsrød <teg@redhat.com>
- source file from /etc/rc.d, not /etc/rd.d. Doh.
Sun Aug 13 2000 Trond Eivind Glomsrød <teg@redhat.com>
- don't run ldconfig -n, it doesn't update ld.so.cache (#16034)
- include some missing binaries
- use safe_mysqld to start the server (request from mysql developers)
Sat Aug 05 2000 Bill Nottingham <notting@redhat.com>
- condrestart fixes
Tue Aug 01 2000 Trond Eivind Glomsrød <teg@redhat.com>
- 3.23.22. Disable the old patches, they're now in.
Thu Jul 27 2000 Trond Eivind Glomsrød <teg@redhat.com>
- bugfixes in the initscript
- move the .so link to the devel package
Wed Jul 19 2000 Trond Eivind Glomsrød <teg@redhat.com>
- rebuild due to glibc changes
Tue Jul 18 2000 Trond Eivind Glomsrød <teg@redhat.com>
- disable compiler patch
- don't include info directory file
Mon Jul 17 2000 Trond Eivind Glomsrød <teg@redhat.com>
- move back to /etc/rc.d/init.d
Fri Jul 14 2000 Trond Eivind Glomsrød <teg@redhat.com>
- more cleanups in initscript
Thu Jul 13 2000 Trond Eivind Glomsrød <teg@redhat.com>
- add a patch to work around compiler bug (from monty@mysql.com)
Wed Jul 12 2000 Trond Eivind Glomsrød <teg@redhat.com>
- don't build the SQL daemon statically (glibc problems)
- fix the logrotate script - only flush log if mysql is running
- change the reloading procedure
- remove icon - glint is obsolete a long time ago
Wed Jul 12 2000 Prospector <bugzilla@redhat.com>
- automatic rebuild
Mon Jul 10 2000 Trond Eivind Glomsrød <teg@redhat.com>
- try the new compiler again
- build the SQL daemon statically
- add compile time support for complex charsets
- enable assembler
- more cleanups in initscript
Sun Jul 09 2000 Trond Eivind Glomsrød <teg@redhat.com>
- use old C++ compiler
- Exclusivearch x86
Sat Jul 08 2000 Trond Eivind Glomsrød <teg@redhat.com>
- move .so files to devel package
- more cleanups
- exclude sparc for now
Wed Jul 05 2000 Trond Eivind Glomsrød <teg@redhat.com>
- 3.23.21
- remove file from /etc/sysconfig
- Fix initscript a bit - initialization of databases doesn't work yet
- specify the correct licenses
- include a /etc/my.conf (empty, FTTB)
- add conditional restart to spec file
Sun Jul 02 2000 Jakub Jelinek <jakub@redhat.com>
- Rebuild with new C++
Fri Jun 30 2000 Trond Eivind Glomsrød <teg@redhat.com>
- update to 3.23.20
- use %configure, %makeinstall, %{_tmppath}, %{_mandir}, %{_infodir},
/etc/init.d
- remove the bench package
- change some of the descriptions a little bit
- fix the init script
- some compile fixes
- specify mysql user
- use mysql uid 27 (postgresql is 26)
- don't build on ia64
Sat Feb 26 2000 Jos Vos <jos@xos.nl>
- Version 3.22.32 release XOS.1 for LinuX/OS 1.8.0
- Upgrade from version 3.22.27 to 3.22.32.
- Do "make install" instead of "make install-strip", because "install -s"
now appears to fail on various scripts. Afterwards, strip manually.
- Reorganize subpackages, according to common Red Hat packages: the client
program and shared library become the base package and the server and
some accompanying files are now in a separate server package. The
server package implicitly requires the base package (shared library),
but we have added a manual require tag anyway (because of the shared
config file, and more).
- Rename the mysql-benchmark subpackage to mysql-bench.
Mon Jan 31 2000 Jos Vos <jos@xos.nl>
- Version 3.22.27 release XOS.2 for LinuX/OS 1.7.1
- Add post(un)install scripts for updating ld.so.conf (client subpackage).
Sun Nov 21 1999 Jos Vos <jos@xos.nl>
- Version 3.22.27 release XOS.1 for LinuX/OS 1.7.0
- Initial version.
- Some ideas borrowed from Red Hat Powertools 6.1, although this spec file
is a full rewrite from scratch.
2004-09-09 08:53:43 +00:00
|
|
|
exit 1
|
|
|
|
esac
|
|
|
|
|
|
|
|
exit $?
|