From aae2c0d21c106983d3f71d897e2219d20092fc0d Mon Sep 17 00:00:00 2001 From: unknown Date: Mon, 10 Mar 2008 03:25:54 -0600 Subject: [PATCH] Bug #25486: mysqld_multi.server.sh missing from builds Make mysqld_multi.server executable, and allow it to be installed via chkconfig on LSB-compliant systems. scripts/make_binary_distribution.sh: Adjust permissions on some support-files/* scripts: make mysqld_multi.server executable, and mysql-VERSION.spec not executable. support-files/mysqld_multi.server.sh: Add LSB comments for chkconfig to simplify installation for sysadmins. --- scripts/make_binary_distribution.sh | 4 ++-- support-files/mysqld_multi.server.sh | 4 ++++ 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/scripts/make_binary_distribution.sh b/scripts/make_binary_distribution.sh index 8598a022669..68af030f17a 100644 --- a/scripts/make_binary_distribution.sh +++ b/scripts/make_binary_distribution.sh @@ -327,8 +327,8 @@ if [ $BASE_SYSTEM != "netware" ] ; then < support-files/mysql.server.sh > $BASE/support-files/mysql.server $BASE/bin/replace /my/gnu/bin/hostname /bin/hostname -- $BASE/bin/mysqld_safe mv $BASE/support-files/binary-configure $BASE/configure - chmod a+x $BASE/bin/* $BASE/scripts/* $BASE/support-files/mysql-* \ - $BASE/support-files/mysql.server $BASE/configure + chmod a+x $BASE/bin/* $BASE/scripts/* $BASE/support-files/mysql-log-rotate \ + $BASE/support-files/*.server $BASE/configure $CP -r sql-bench/* $BASE/sql-bench rm -f $BASE/sql-bench/*.sh $BASE/sql-bench/Makefile* $BASE/lib/*.la rm -f $BASE/bin/*.sql diff --git a/support-files/mysqld_multi.server.sh b/support-files/mysqld_multi.server.sh index aaf3f2ebb40..75908a5db9d 100644 --- a/support-files/mysqld_multi.server.sh +++ b/support-files/mysqld_multi.server.sh @@ -7,6 +7,10 @@ # # This script can be used as /etc/init.d/mysql.server # +# Comments to support chkconfig on RedHat Linux +# chkconfig: 2345 64 36 +# description: A very fast and reliable SQL database engine. +# # Version 1.0 #