Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 58466 Details for
Bug 91997
PATCH: fix /etc/init.d/mysql to support alternative $basedir
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
fix init script to use basedir variable to locate mysqld_safe binary
mysql.patch (text/plain), 854 bytes, created by
Martin Mokrejš
on 2005-05-09 05:11:19 UTC
(
hide
)
Description:
fix init script to use basedir variable to locate mysqld_safe binary
Filename:
MIME Type:
Creator:
Martin Mokrejš
Created:
2005-05-09 05:11:19 UTC
Size:
854 bytes
patch
obsolete
>--- /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 $? > }
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 91997
: 58466