[prev in list] [next in list] [prev in thread] [next in thread]
List: opencsw-users
Subject: [csw-users] Patch for MySQL 5.5 method
From: Laurent Blume <laurent () elanor ! org>
Date: 2012-11-02 12:54:42
Message-ID: 5093C292.50707 () elanor ! org
[Download RAW message or body]
Hello all,
The architecture selection bit for the MySQL method that I proposed
appears to work well, except in one case:
if "basedir = /opt/csw" has been explicitly specified in my.cnf, the
script will pick that up after the architecture was detected, and
concatenate /bin, /sbin, /libexec to it before starting the daemon.
So that keeps starting the 32 bit version, even if the 64 one has been
explicitly chosen in csw.conf.
I'm attaching a small patch to the method script that fixes that. It's
straightforward and should be safe in all cases.
Laurent
["07_method_use_basedir.patch" (text/x-patch)]
--- cswmysql5.tpl.old août 27 09:57:54 2012
+++ cswmysql5.tpl ven. nov 2 11:29:18 2012
@@ -118,13 +118,15 @@
parse_server_arguments() {
for arg do
case "$arg" in
+ # $mysql5_arch must have been set (or left empty) for Solaris
+ # by the OpenCSW architecture selection bit
--basedir=*) basedir=`echo "$arg" | sed -e 's/^[^=]*=//'`
- bindir="$basedir/bin"
+ bindir="$basedir/bin/$mysql5_arch"
if test -z "$datadir_set"; then
datadir="$basedir/data"
fi
- sbindir="$basedir/sbin"
- libexecdir="$basedir/libexec"
+ sbindir="$basedir/sbin/$mysql5_arch"
+ libexecdir="$basedir/libexec/$mysql5_arch"
;;
--datadir=*) datadir=`echo "$arg" | sed -e 's/^[^=]*=//'`
datadir_set=1
_______________________________________________
users mailing list
users@lists.opencsw.org
https://lists.opencsw.org/mailman/listinfo/users
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic