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
--- 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
[email protected]
https://lists.opencsw.org/mailman/listinfo/users