--- /etc/init.d/mysql.old 2005-05-09 13:55:45.267113635 +0200 +++ /etc/init.d/mysql 2005-05-09 13:59:20.317267216 +0200 @@ -19,11 +19,13 @@ local mysqld_cnf="`my_print_defaults --config-file=${MY_CNF} mysqld`" datadir=`echo "${mysqld_cnf}" | sed -ne '/datadir/s|^--datadir=||p' | tail -n1` pidfile=`echo "${mysqld_cnf}" | sed -ne '/pid-file/s|^--pid-file=||p' | tail -n1` + basedir=`echo "${mysqld_cnf}" | sed -ne '/basedir/s|^--basedir=||p' | tail -n1` # push these out to the script export MY_CNF export pidfile export datadir + export basedir } checkconfig() { @@ -46,7 +48,7 @@ checkconfig || return 1 ebegin "Starting mysqld (${MY_CNF})" start-stop-daemon --start --quiet --background \ - --exec /usr/bin/mysqld_safe \ + --exec ${basedir}/bin/mysqld_safe \ -- --defaults-file=${MY_CNF} >/dev/null 2>&1 eend $? }