mysql8.4/mysql.init

97 lines
1.9 KiB
Plaintext
Raw Normal View History

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
#!/bin/sh
#
# mysqld This shell script takes care of starting and stopping
# the MySQL subsystem (mysqld).
#
auto-import changelog data from mysql-3.23.32-1.7.src.rpm 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
2004-09-09 08:54:34 +00:00
# chkconfig: - 78 12
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
# config: /etc/my.cnf
auto-import changelog data from mysql-3.23.32-1.7.src.rpm 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
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
# 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
auto-import changelog data from mysql-3.23.32-1.7.src.rpm 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
2004-09-09 08:54:34 +00:00
chmod 0640 /var/log/mysqld.log
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 [ ! -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
auto-import changelog data from mysql-3.23.32-1.7.src.rpm 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
2004-09-09 08:54:34 +00:00
/usr/bin/safe_mysqld --defaults-file=/etc/my.cnf >/dev/null 2>&1 &
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=$?
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(){
auto-import changelog data from mysql-3.23.32-1.7.src.rpm 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
2004-09-09 08:54:34 +00:00
/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
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=$?
[ $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 $?